Silence time_t warning
o9000 mrovi9000@gmail.com
2 files changed,
2 insertions(+),
2 deletions(-)
M
src/tint2conf/main.c
→
src/tint2conf/main.c
@@ -100,7 +100,7 @@ }
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); }
M
src/tint2conf/properties.c
→
src/tint2conf/properties.c
@@ -181,7 +181,7 @@ {
gchar *filepath = get_current_theme_path(); if (filepath) { if (config_is_manual(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); }