From df4532bfa390d7986a0544b93a95921d4b473ef2 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 14 Jul 2000 17:24:58 +0000 Subject: [PATCH] More fixes for "signed vs. unsigned" warnings. --- console-tools/loadfont.c | 4 ++-- loadfont.c | 4 ++-- logger.c | 3 ++- 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) { int unit; char inbuf[32768]; /* primitive */ - int inputlth, offset; + unsigned int inputlth, offset; /* * We used to look at the length of the input file @@ -187,7 +187,7 @@ static void loadnewfont(int fd) struct psf_header psfhdr; int fontsize; int hastable; - int head0, head; + unsigned int head0, head; if (inputlth < sizeof(struct psf_header)) 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) { int unit; char inbuf[32768]; /* primitive */ - int inputlth, offset; + unsigned int inputlth, offset; /* * We used to look at the length of the input file @@ -187,7 +187,7 @@ static void loadnewfont(int fd) struct psf_header psfhdr; int fontsize; int hastable; - int head0, head; + unsigned int head0, head; if (inputlth < sizeof(struct psf_header)) goto no_psf; diff --git a/logger.c b/logger.c index 71d703085..981748bb5 100644 --- a/logger.c +++ b/logger.c @@ -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; 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) 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;