Remove const warnings

This commit is contained in:
simon.kagstrom 2009-05-21 11:55:23 +00:00
parent 11cfa91379
commit 3637e61b15

View File

@ -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);