aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/lib
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-01 21:43:26 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-01 21:43:26 +0000
commit7a651e94c5fc5fa38da05e68a776d396e11e534d (patch)
tree24679a56dcc17a78d6edf3707c68ddf33281763b /firmware/lib
parent010aaff97b1c6e7d0f82057fbd6cff6d643b5490 (diff)
make gcc happy (signed/unsigned)
git-svn-id: https://svn.openpcd.org:2342/trunk@249 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/lib')
-rw-r--r--firmware/lib/vsprintf.c4
1 files changed, 2 insertions, 2 deletions
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);