From 3637e61b15638c6fefa7c245d5745c1e3d31742f Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Thu, 21 May 2009 11:55:23 +0000 Subject: [PATCH] Remove const warnings --- src/gui-sdl/gui-sdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui-sdl/gui-sdl.c b/src/gui-sdl/gui-sdl.c index fe7373c..72e2812 100644 --- a/src/gui-sdl/gui-sdl.c +++ b/src/gui-sdl/gui-sdl.c @@ -170,7 +170,7 @@ static void insert_floppy(int which) changed_prefs.df[which][0] = '\0'; else strcpy (changed_prefs.df[which], name); - free(name); + free((void*)name); } else changed_prefs.df[which][0] = '\0'; @@ -379,7 +379,7 @@ static void save_load_state(int which) restore_state(name); else unlink(name); - free(name); + free((void*)name); } break; case 1: /* Save state */ snprintf(db, 255, "%s/%s.sav", dir, fb);