[PATCH] clean up compiler warnings in vsnprintf.c
Al Stone
ahs3 at fc.hp.com
Wed Mar 7 15:29:00 PST 2007
Unless the warnings about pointer types being of mismatched
signedness in vsnprintf.c is useful to someone, this patch
silences them.
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/vsnprintf.c uClibc-ia64-current/libc/stdio/vsnprintf.c
--- svn/libc/stdio/vsnprintf.c 2007-02-07 17:39:24.000000000 -0700
+++ uClibc-ia64-current/libc/stdio/vsnprintf.c 2007-03-07 16:08:24.000000000 -0700
@@ -55,8 +55,8 @@
/* Set these last since __bufputc initialization depends on
* __user_locking and only gets set if user locking is on. */
- f.__bufstart = buf;
- f.__bufend = buf + size;
+ f.__bufstart = (unsigned char *)buf;
+ f.__bufend = (unsigned char *)(buf + size);
__STDIO_STREAM_INIT_BUFREAD_BUFPOS(&f);
__STDIO_STREAM_DISABLE_GETC(&f);
__STDIO_STREAM_ENABLE_PUTC(&f);
More information about the uClibc
mailing list