From 7a651e94c5fc5fa38da05e68a776d396e11e534d Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 1 Oct 2006 21:43:26 +0000 Subject: make gcc happy (signed/unsigned) git-svn-id: https://svn.openpcd.org:2342/trunk@249 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- firmware/lib/vsprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/lib') diff --git a/firmware/lib/vsprintf.c b/firmware/lib/vsprintf.c index 9eff70b..5da7c02 100644 --- a/firmware/lib/vsprintf.c +++ b/firmware/lib/vsprintf.c @@ -499,7 +499,7 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args) */ int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) { - int i; + unsigned int i; i=vsnprintf(buf,size,fmt,args); return (i >= size) ? (size - 1) : i; @@ -545,7 +545,7 @@ int snprintf(char * buf, size_t size, const char *fmt, ...) int scnprintf(char * buf, size_t size, const char *fmt, ...) { va_list args; - int i; + unsigned int i; va_start(args, fmt); i = vsnprintf(buf, size, fmt, args); -- cgit v1.2.3