Fixed a couple of signed-unsigned comparisons.
authorDavid Levine <levinedl@acm.org>
Tue, 20 Nov 2012 01:19:59 +0000 (19:19 -0600)
committerDavid Levine <levinedl@acm.org>
Tue, 20 Nov 2012 01:19:59 +0000 (19:19 -0600)
sbr/fmt_compile.c
uip/forwsbr.c

index 3a6202d..0147334 100644 (file)
@@ -981,7 +981,7 @@ fmt_appendcomp(int bucket, char *component, char *text)
 static void
 free_comptable(void)
 {
-    int i;
+    unsigned int i;
     struct comp *cm, *cm2;
 
     for (i = 0; i < sizeof(wantcomp)/sizeof(wantcomp[0]); i++) {
index 355adff..8625585 100644 (file)
@@ -47,7 +47,7 @@ build_form (char *form, char *digest, int *dat, char *from, char *to,
 {
     int        in;
     int fmtsize, state, char_read = 0;
-    unsigned i;
+    int i;
     register char *nfs;
     char *line, tmpfil[BUFSIZ], name[NAMESZ], **ap;
     FILE *tmp;