openbsd-ports/x11/gnome/gedit/patches/patch-gedit_gedit-metadata-manager_c

17 lines
749 B
Plaintext

$OpenBSD: patch-gedit_gedit-metadata-manager_c,v 1.2 2011/09/12 07:26:20 ajacoutot Exp $
gedit-2.28.0.log:gedit-metadata-manager.c: In function `save_item':
gedit-2.28.0.log:gedit-metadata-manager.c:455: warning: long int format, different type arg (arg 2)
--- gedit/gedit-metadata-manager.c.orig Thu Jan 27 10:56:44 2011
+++ gedit/gedit-metadata-manager.c Sat May 14 23:00:51 2011
@@ -474,7 +474,7 @@ save_item (const gchar *key, const gpointer *data, xml
gedit_debug_message (DEBUG_METADATA, "uri: %s", key);
#endif
- atime = g_strdup_printf ("%ld", item->atime);
+ atime = g_strdup_printf ("%lld", (long long)item->atime);
xmlSetProp (xml_node, (const xmlChar *)"atime", (const xmlChar *)atime);
#ifdef GEDIT_METADATA_VERBOSE_DEBUG