More fixes for "signed vs. unsigned" warnings.
authorPavel Roskin <proski@gnu.org>
Fri, 14 Jul 2000 17:24:58 +0000 (17:24 -0000)
committerPavel Roskin <proski@gnu.org>
Fri, 14 Jul 2000 17:24:58 +0000 (17:24 -0000)
console-tools/loadfont.c
loadfont.c
logger.c
sysklogd/logger.c

index b3f9f4f1189f3279354c0603c1c572deccf7aba0..46a7574c0d616bf2556f0bbcf0dd4cb64aed5560 100644 (file)
@@ -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;
index b3f9f4f1189f3279354c0603c1c572deccf7aba0..46a7574c0d616bf2556f0bbcf0dd4cb64aed5560 100644 (file)
@@ -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;
index 71d7030854a52a2f064b0dbd33f8cc658bfddcbc..981748bb50559ad122b1a7cf0b7ed996375bd704 100644 (file)
--- 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;
index 71d7030854a52a2f064b0dbd33f8cc658bfddcbc..981748bb50559ad122b1a7cf0b7ed996375bd704 100644 (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;