Silence time_t warning
This commit is contained in:
@@ -100,7 +100,7 @@ char *file_name_from_path(const char *filepath)
|
||||
|
||||
void make_backup(const char *filepath)
|
||||
{
|
||||
gchar *backup_path = g_strdup_printf("%s.backup.%ld", filepath, time(NULL));
|
||||
gchar *backup_path = g_strdup_printf("%s.backup.%ld", filepath, (long)time(NULL));
|
||||
copy_file(filepath, backup_path);
|
||||
g_free(backup_path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user