Trivial type fix.
-Erik
This commit is contained in:
parent
d38eaef70b
commit
286b0de74d
3
logger.c
3
logger.c
@ -151,8 +151,7 @@ extern int logger_main(int argc, char **argv)
|
|||||||
|
|
||||||
if (fromStdinFlag==TRUE) {
|
if (fromStdinFlag==TRUE) {
|
||||||
/* read from stdin */
|
/* read from stdin */
|
||||||
int i=0;
|
int c, i=0;
|
||||||
char c;
|
|
||||||
while ((c = getc(stdin)) != EOF && i<sizeof(buf1)) {
|
while ((c = getc(stdin)) != EOF && i<sizeof(buf1)) {
|
||||||
buf1[i++]=c;
|
buf1[i++]=c;
|
||||||
}
|
}
|
||||||
|
@ -151,8 +151,7 @@ extern int logger_main(int argc, char **argv)
|
|||||||
|
|
||||||
if (fromStdinFlag==TRUE) {
|
if (fromStdinFlag==TRUE) {
|
||||||
/* read from stdin */
|
/* read from stdin */
|
||||||
int i=0;
|
int c, i=0;
|
||||||
char c;
|
|
||||||
while ((c = getc(stdin)) != EOF && i<sizeof(buf1)) {
|
while ((c = getc(stdin)) != EOF && i<sizeof(buf1)) {
|
||||||
buf1[i++]=c;
|
buf1[i++]=c;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user