# HG changeset patch # User zas_ # Date 1227181603 0 # Node ID 3692efcbd3257293b26ffa7fb6aa7c55e6dbc988 # Parent a72acb0fb9a6e3d5731e876df1f51457a4446f30 Fix compilation warnings. diff -r a72acb0fb9a6 -r 3692efcbd325 src/exif-common.c --- a/src/exif-common.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/exif-common.c Thu Nov 20 11:46:43 2008 +0000 @@ -456,7 +456,7 @@ p2 = (gint)((p - p1)*60); p3 = ((p - p1)*60 - p2)*60; - g_string_append_printf(string, "%0d° %0d' %0.2f\" %.1s", p1, p2, p3, ref); + g_string_append_printf(string, "%0lu° %0lu' %0.2f\" %.1s", p1, p2, p3, ref); } // if (item && ref) item = exif_get_item(exif, "Exif.GPSInfo.GPSLongitude"); @@ -474,7 +474,7 @@ p2 = (gint)((p - p1)*60); p3 = ((p - p1)*60 - p2)*60; - g_string_append_printf(string, ", %0d° %0d' %0.2f\" %.1s", p1, p2, p3, ref); + g_string_append_printf(string, ", %0lu° %0lu' %0.2f\" %.1s", p1, p2, p3, ref); } // if (item && ref) text = string->str; diff -r a72acb0fb9a6 -r 3692efcbd325 src/filecache.c --- a/src/filecache.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/filecache.c Thu Nov 20 11:46:43 2008 +0000 @@ -165,7 +165,7 @@ { GList *work; work = fc->list; - guint n = 0; + gulong n = 0; DEBUG_1("cache dump: fc=%p max size:%ld size:%ld", fc, fc->max_size, fc->size); while (work) diff -r a72acb0fb9a6 -r 3692efcbd325 src/print.c --- a/src/print.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/print.c Thu Nov 20 11:46:43 2008 +0000 @@ -1223,7 +1223,7 @@ } text[6] = '\0'; - fprintf(f, text); + fprintf(f, "%s", text); } static gint print_job_ps_page_image(PrintWindow *pw, GdkPixbuf *pixbuf, gdouble x, gdouble y, gdouble w, gdouble h, @@ -1348,7 +1348,7 @@ text[1] = hex_digits[*p & 0xf]; text[2] = '\0'; - fprintf(f, text); + fprintf(f, "%s", text); p++; } diff -r a72acb0fb9a6 -r 3692efcbd325 src/ui_fileops.c --- a/src/ui_fileops.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/ui_fileops.c Thu Nov 20 11:46:43 2008 +0000 @@ -829,7 +829,7 @@ return ret; } -gboolean recursive_mkdir_if_not_exists(gchar *path, mode_t mode) +gboolean recursive_mkdir_if_not_exists(const gchar *path, mode_t mode) { if (!path) return FALSE; diff -r a72acb0fb9a6 -r 3692efcbd325 src/ui_fileops.h --- a/src/ui_fileops.h Thu Nov 20 07:22:56 2008 +0000 +++ b/src/ui_fileops.h Thu Nov 20 11:46:43 2008 +0000 @@ -84,7 +84,7 @@ gint file_in_path(const gchar *name); -gboolean recursive_mkdir_if_not_exists(gchar *path, mode_t mode); +gboolean recursive_mkdir_if_not_exists(const gchar *path, mode_t mode); #endif /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ diff -r a72acb0fb9a6 -r 3692efcbd325 src/view_file_icon.c --- a/src/view_file_icon.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/view_file_icon.c Thu Nov 20 11:46:43 2008 +0000 @@ -544,7 +544,7 @@ uri_text = uri_text_from_filelist(list, &total, (info == TARGET_TEXT_PLAIN)); filelist_free(list); - DEBUG_1(uri_text); + DEBUG_1("%s", uri_text); gtk_selection_data_set(selection_data, selection_data->target, 8, (guchar *)uri_text, total); diff -r a72acb0fb9a6 -r 3692efcbd325 src/view_file_list.c --- a/src/view_file_list.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/view_file_list.c Thu Nov 20 11:46:43 2008 +0000 @@ -246,7 +246,7 @@ uri_text = uri_text_from_filelist(list, &total, (info == TARGET_TEXT_PLAIN)); filelist_free(list); - DEBUG_1(uri_text); + DEBUG_1("%s", uri_text); gtk_selection_data_set(selection_data, selection_data->target, 8, (guchar *)uri_text, total);