More fixes for "signed vs. unsigned" warnings.

This commit is contained in:
Pavel Roskin
2000-07-14 17:24:58 +00:00
parent ff5a9033f9
commit df4532bfa3
4 changed files with 8 additions and 6 deletions

View File

@ -156,7 +156,8 @@ extern int logger_main(int argc, char **argv)
if (fromStdinFlag == TRUE) {
/* read from stdin */
int c, i = 0;
int c;
unsigned int i = 0;
while ((c = getc(stdin)) != EOF && i < sizeof(buf)) {
buf[i++] = c;