]> git.pld-linux.org Git - packages/elfutils.git/commitdiff
- fix warnings (-Wall turns them to errors)
authorshadzik <shadzik@pld-linux.org>
Sun, 6 Jun 2010 11:51:21 +0000 (11:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    elfutils-strings_c.patch -> 1.1

elfutils-strings_c.patch [new file with mode: 0644]

diff --git a/elfutils-strings_c.patch b/elfutils-strings_c.patch
new file mode 100644 (file)
index 0000000..99e66c4
--- /dev/null
@@ -0,0 +1,22 @@
+--- src/strings.c.orig 2010-06-06 13:44:24.944220549 +0200
++++ src/strings.c      2010-06-06 13:48:09.937738243 +0200
+@@ -381,7 +381,8 @@
+                assume the file data is encoded in UCS-2/UTF-16 or
+                UCS-4/UTF-32 respectively we could covert the string.
+                But there is no such guarantee.  */
+-            fwrite_unlocked (start, 1, buf - start, stdout);
++            int ret;
++            ret = fwrite_unlocked (start, 1, buf - start, stdout);
+             putc_unlocked ('\n', stdout);
+           }
+@@ -441,7 +442,8 @@
+                 free (*unprinted);
+                 *unprinted = NULL;
+               }
+-            fwrite_unlocked (start, 1, buf - start, stdout);
++            int ret;
++            ret = fwrite_unlocked (start, 1, buf - start, stdout);
+             putc_unlocked ('\n', stdout);
+           }
This page took 0.071644 seconds and 4 git commands to generate.