[PATCH] clean up compiler warnings in libc/stdio/vfprintf.c

Al Stone ahs3 at fc.hp.com
Thu Mar 8 00:42:45 UTC 2007


Silence some warnings about pointer signedness in
libc/stdio/vfprintf.c.

Signed-off-by: Al Stone <ahs3 at fc.hp.com>

-- 
Ciao,
al
----------------------------------------------------------------------
Al Stone                                      Alter Ego:
Open Source and Linux R&D                     Debian Developer
Hewlett-Packard Company                       http://www.debian.org
E-mail: ahs3 at fc.hp.com                        ahs3 at debian.org
----------------------------------------------------------------------

diff --exclude .svn -Naur svn/libc/stdio/_vfprintf.c uClibc-ia64-current/libc/stdio/_vfprintf.c
--- svn/libc/stdio/_vfprintf.c	2007-02-07 17:39:24.000000000 -0700
+++ uClibc-ia64-current/libc/stdio/_vfprintf.c	2007-03-07 17:25:41.000000000 -0700
@@ -1216,7 +1216,7 @@
 #define _PPFS_init _ppfs_init
 #define OUTPUT(F,S)			fputs_unlocked(S,F)
 /* #define _outnstr(stream, string, len)	__stdio_fwrite(string, len, stream) */
-#define _outnstr(stream, string, len)	((len > 0) ? __stdio_fwrite(string, len, stream) : 0)
+#define _outnstr(stream, string, len)	((len > 0) ? __stdio_fwrite((unsigned char *)string, len, stream) : 0)
 #define FP_OUT _fp_out_narrow
 
 #ifdef __STDIO_PRINTF_FLOAT





More information about the uClibc mailing list