diff options
author | Pavel Roskin <proski@gnu.org> | 2000-07-14 17:24:58 +0000 |
---|---|---|
committer | Pavel Roskin <proski@gnu.org> | 2000-07-14 17:24:58 +0000 |
commit | df4532bfa390d7986a0544b93a95921d4b473ef2 (patch) | |
tree | 7381dffc6d435e1b950610f8630a6b7198dd87d8 | |
parent | ff5a9033f9dfa449d32aa7b2631a55ebfb7fbc5e (diff) | |
download | busybox-w32-df4532bfa390d7986a0544b93a95921d4b473ef2.tar.gz busybox-w32-df4532bfa390d7986a0544b93a95921d4b473ef2.tar.bz2 busybox-w32-df4532bfa390d7986a0544b93a95921d4b473ef2.zip |
More fixes for "signed vs. unsigned" warnings.
-rw-r--r-- | console-tools/loadfont.c | 4 | ||||
-rw-r--r-- | loadfont.c | 4 | ||||
-rw-r--r-- | logger.c | 3 | ||||
-rw-r--r-- | sysklogd/logger.c | 3 |
4 files changed, 8 insertions, 6 deletions
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index b3f9f4f11..46a7574c0 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -161,7 +161,7 @@ static void loadnewfont(int fd) | |||
161 | { | 161 | { |
162 | int unit; | 162 | int unit; |
163 | char inbuf[32768]; /* primitive */ | 163 | char inbuf[32768]; /* primitive */ |
164 | int inputlth, offset; | 164 | unsigned int inputlth, offset; |
165 | 165 | ||
166 | /* | 166 | /* |
167 | * We used to look at the length of the input file | 167 | * We used to look at the length of the input file |
@@ -187,7 +187,7 @@ static void loadnewfont(int fd) | |||
187 | struct psf_header psfhdr; | 187 | struct psf_header psfhdr; |
188 | int fontsize; | 188 | int fontsize; |
189 | int hastable; | 189 | int hastable; |
190 | int head0, head; | 190 | unsigned int head0, head; |
191 | 191 | ||
192 | if (inputlth < sizeof(struct psf_header)) | 192 | if (inputlth < sizeof(struct psf_header)) |
193 | goto no_psf; | 193 | goto no_psf; |
diff --git a/loadfont.c b/loadfont.c index b3f9f4f11..46a7574c0 100644 --- a/loadfont.c +++ b/loadfont.c | |||
@@ -161,7 +161,7 @@ static void loadnewfont(int fd) | |||
161 | { | 161 | { |
162 | int unit; | 162 | int unit; |
163 | char inbuf[32768]; /* primitive */ | 163 | char inbuf[32768]; /* primitive */ |
164 | int inputlth, offset; | 164 | unsigned int inputlth, offset; |
165 | 165 | ||
166 | /* | 166 | /* |
167 | * We used to look at the length of the input file | 167 | * We used to look at the length of the input file |
@@ -187,7 +187,7 @@ static void loadnewfont(int fd) | |||
187 | struct psf_header psfhdr; | 187 | struct psf_header psfhdr; |
188 | int fontsize; | 188 | int fontsize; |
189 | int hastable; | 189 | int hastable; |
190 | int head0, head; | 190 | unsigned int head0, head; |
191 | 191 | ||
192 | if (inputlth < sizeof(struct psf_header)) | 192 | if (inputlth < sizeof(struct psf_header)) |
193 | goto no_psf; | 193 | goto no_psf; |
@@ -156,7 +156,8 @@ extern int logger_main(int argc, char **argv) | |||
156 | 156 | ||
157 | if (fromStdinFlag == TRUE) { | 157 | if (fromStdinFlag == TRUE) { |
158 | /* read from stdin */ | 158 | /* read from stdin */ |
159 | int c, i = 0; | 159 | int c; |
160 | unsigned int i = 0; | ||
160 | 161 | ||
161 | while ((c = getc(stdin)) != EOF && i < sizeof(buf)) { | 162 | while ((c = getc(stdin)) != EOF && i < sizeof(buf)) { |
162 | buf[i++] = c; | 163 | buf[i++] = c; |
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 71d703085..981748bb5 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c | |||
@@ -156,7 +156,8 @@ extern int logger_main(int argc, char **argv) | |||
156 | 156 | ||
157 | if (fromStdinFlag == TRUE) { | 157 | if (fromStdinFlag == TRUE) { |
158 | /* read from stdin */ | 158 | /* read from stdin */ |
159 | int c, i = 0; | 159 | int c; |
160 | unsigned int i = 0; | ||
160 | 161 | ||
161 | while ((c = getc(stdin)) != EOF && i < sizeof(buf)) { | 162 | while ((c = getc(stdin)) != EOF && i < sizeof(buf)) { |
162 | buf[i++] = c; | 163 | buf[i++] = c; |