make gcc happy (signed/unsigned)

git-svn-id: https://svn.openpcd.org:2342/trunk@249 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
This commit is contained in:
laforge 2006-10-01 21:43:26 +00:00
parent 010aaff97b
commit 7a651e94c5
1 changed files with 2 additions and 2 deletions

View File

@ -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);