make parseable for splint

- replace non standard u_char with unsigned char (ANSI)
- advice splint to ignore variadic macros
- move declarations from the middle to top of functions (C90)
- replace local library includes <> to ""
This commit is contained in:
Stefan Wahren
2013-05-04 18:14:18 +02:00
parent d6ac241d2f
commit 3935b4013e
12 changed files with 135 additions and 132 deletions

View File

@ -82,7 +82,7 @@ hex_to_bin(char *buff, size_t buff_size, char *hex_buff)
while ((ptr != endptr) && i < buff_size-1)
{
ptr = endptr;
buff[i++] = (u_char)strtol(ptr, (char **)&endptr, 16);
buff[i++] = (unsigned char)strtol(ptr, (char **)&endptr, 16);
}
return i;