aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-01-07 09:43:38 +0000
committerErik Andersen <andersen@codepoet.org>2000-01-07 09:43:38 +0000
commit286b0de74da3cba56b8cc7961a19044eb45969b2 (patch)
treec33c902699a6bf505f959d2f059b95412bb65a30
parentd38eaef70bd8e3045992d95057088b65d0fa254f (diff)
downloadbusybox-w32-286b0de74da3cba56b8cc7961a19044eb45969b2.tar.gz
busybox-w32-286b0de74da3cba56b8cc7961a19044eb45969b2.tar.bz2
busybox-w32-286b0de74da3cba56b8cc7961a19044eb45969b2.zip
Trivial type fix.
-Erik
-rw-r--r--logger.c3
-rw-r--r--sysklogd/logger.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/logger.c b/logger.c
index 5ef622dc3..35bbb6692 100644
--- a/logger.c
+++ b/logger.c
@@ -151,8 +151,7 @@ extern int logger_main(int argc, char **argv)
151 151
152 if (fromStdinFlag==TRUE) { 152 if (fromStdinFlag==TRUE) {
153 /* read from stdin */ 153 /* read from stdin */
154 int i=0; 154 int c, i=0;
155 char c;
156 while ((c = getc(stdin)) != EOF && i<sizeof(buf1)) { 155 while ((c = getc(stdin)) != EOF && i<sizeof(buf1)) {
157 buf1[i++]=c; 156 buf1[i++]=c;
158 } 157 }
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 5ef622dc3..35bbb6692 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -151,8 +151,7 @@ extern int logger_main(int argc, char **argv)
151 151
152 if (fromStdinFlag==TRUE) { 152 if (fromStdinFlag==TRUE) {
153 /* read from stdin */ 153 /* read from stdin */
154 int i=0; 154 int c, i=0;
155 char c;
156 while ((c = getc(stdin)) != EOF && i<sizeof(buf1)) { 155 while ((c = getc(stdin)) != EOF && i<sizeof(buf1)) {
157 buf1[i++]=c; 156 buf1[i++]=c;
158 } 157 }