Changed types and added casts so that build is clean with gcc -Wsign-compare.
[mmh] / uip / mhoutsbr.c
index 8517781..130b4e5 100644 (file)
 #include <h/md5.h>
 #include <errno.h>
 #include <signal.h>
-#include <h/mts.h>
 #include <h/tws.h>
 #include <h/mime.h>
 #include <h/mhparse.h>
 
-#ifdef HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
-
-
 extern int ebcdicsw;
 
 static char ebcdicsafe[0x100] = {
@@ -375,24 +369,24 @@ writeQuoted(CT ct, FILE *out)
                        }
 
                        switch (*cp) {
-                               case ' ':
-                               case '\t':
-                                       putc(*cp, out);
-                                       n++;
-                                       break;
-
-                               default:
-                                       if (*cp < '!' || *cp > '~' || (ebcdicsw && !ebcdicsafe[*cp & 0xff]))
-                                               goto three_print;
-                                       putc(*cp, out);
-                                       n++;
-                                       break;
-
-                               case '=':
+                       case ' ':
+                       case '\t':
+                               putc(*cp, out);
+                               n++;
+                               break;
+
+                       default:
+                               if (*cp < '!' || *cp > '~' || (ebcdicsw && !ebcdicsafe[*cp & 0xff]))
+                                       goto three_print;
+                               putc(*cp, out);
+                               n++;
+                               break;
+
+                       case '=':
 three_print:
-                                       fprintf(out, "=%02X", *cp & 0xff);
-                                       n += 3;
-                                       break;
+                               fprintf(out, "=%02X", *cp & 0xff);
+                               n += 3;
+                               break;
                        }
                }
 
@@ -435,7 +429,7 @@ writeBase64(CT ct, FILE *out)
 int
 writeBase64aux(FILE *in, FILE *out)
 {
-       int cc, n;
+       unsigned int cc, n;
        char inbuf[3];
 
        n = BPERLIN;