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");
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;
{
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)
}
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,
text[1] = hex_digits[*p & 0xf];
text[2] = '\0';
- fprintf(f, text);
+ fprintf(f, "%s", text);
p++;
}
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;
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: */
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);
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);