Some user-contributed patches to cleanup the build and remove warnings.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1322 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -1344,7 +1344,7 @@ void Rotate_safety_backups(void)
|
||||
sprintf(deleted_file, "%s%c%6.6d.bkp",
|
||||
Config_directory,
|
||||
Main_safety_backup_prefix,
|
||||
(Main_safety_number + 1000000l - Rotation_safety_backup) % 1000000l);
|
||||
(Uint32)(Main_safety_number + 1000000l - Rotation_safety_backup) % (Uint32)1000000l);
|
||||
remove(deleted_file); // no matter if fail
|
||||
|
||||
// Reset counters
|
||||
@@ -1354,7 +1354,7 @@ void Rotate_safety_backups(void)
|
||||
// Create a new file name and save
|
||||
sprintf(file_name, "%c%6.6d.bkp",
|
||||
Main_safety_backup_prefix,
|
||||
Main_safety_number);
|
||||
(Unit32)Main_safety_number);
|
||||
Init_context_layered_image(&context, file_name, Config_directory);
|
||||
context.Format=FORMAT_GIF;
|
||||
Save_image(&context);
|
||||
|
||||
Reference in New Issue
Block a user