SOURCES: libsemanage-printf_format.patch (NEW) - this patch fixes ...
pluto
pluto at pld-linux.org
Tue Sep 27 03:30:05 CEST 2005
Author: pluto Date: Tue Sep 27 01:30:04 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- this patch fixes gcc warning:
format '%u' expects type 'unsigned int', but argument 5 has type 'size_t'
more info at: http://www.dinkumware.com/htm_cl/lib_prin.html
---- Files affected:
SOURCES:
libsemanage-printf_format.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/libsemanage-printf_format.patch
diff -u /dev/null SOURCES/libsemanage-printf_format.patch:1.1
--- /dev/null Tue Sep 27 03:30:04 2005
+++ SOURCES/libsemanage-printf_format.patch Tue Sep 27 03:29:58 2005
@@ -0,0 +1,16 @@
+this patch fixes gcc warning:
+format '%u' expects type 'unsigned int', but argument 5 has type 'size_t'
+
+more info at: http://www.dinkumware.com/htm_cl/lib_prin.html
+
+--- libsemanage-1.2/src/module_ps_api.c.orig 2005-08-25 18:04:22.000000000 +0200
++++ libsemanage-1.2/src/module_ps_api.c 2005-09-27 03:24:50.117674500 +0200
+@@ -536,7 +536,7 @@
+ va_start (ap, fmt);
+ (void) vsnprintf (buf, sizeof (buf), fmt, ap);
+ va_end (ap);
+- (void) snprintf (buf2, sizeof (buf2), "%s %u\n", buf, data_len);
++ (void) snprintf (buf2, sizeof (buf2), "%s %zd\n", buf, data_len);
+ if (write (fd, buf2, strlen (buf2)) == -1) {
+ return -1;
+ }
================================================================
More information about the pld-cvs-commit
mailing list