Mercurial > mplayer.hg
diff gui/win32/dialogs.c @ 30702:9fc9d1e788aa
Do not cast the results of malloc/calloc/realloc.
These functions return void*, which is compatible with any pointer,
so there is no need for casts.
author | diego |
---|---|
date | Fri, 26 Feb 2010 15:01:37 +0000 |
parents | 9e739bdb049c |
children | 76a13038105e |
line wrap: on
line diff
--- a/gui/win32/dialogs.c Fri Feb 26 12:49:49 2010 +0000 +++ b/gui/win32/dialogs.c Fri Feb 26 15:01:37 2010 +0000 @@ -715,7 +715,7 @@ { if (guiIntfStruct.Playing) guiGetEvent(guiCEvent, (void *) guiSetStop); if (skinName) free(skinName); - skinName = (char *) malloc(len+1); + skinName = malloc(len + 1); SendMessage(listbox, LB_GETTEXT, (WPARAM) index, (LPARAM) skinName); /* fill out the full pathname to the skin */ strcpy(skinspath, get_path("skins"));