Fix uip/whom.c for C89 compatibility
[mmh] / sbr / seq_del.c
index 92e2f1e..5555f11 100644 (file)
@@ -24,7 +24,8 @@
 int
 seq_delsel(struct msgs *mp, char *cp, int public, int zero)
 {
-       int i, msgnum, new_seq = 1;
+       unsigned int i;
+       int msgnum, new_seq = 1;
 
        if (!seq_nameok(cp))
                return 0;
@@ -33,7 +34,7 @@ seq_delsel(struct msgs *mp, char *cp, int public, int zero)
        ** Get the number for this sequence
        */
        for (i = 0; mp->msgattrs[i]; i++) {
-               if (!strcmp(mp->msgattrs[i], cp)) {
+               if (strcmp(mp->msgattrs[i], cp)==0) {
                        new_seq = 0;
                        break;
                }
@@ -119,7 +120,7 @@ seq_delmsg(struct msgs *mp, char *cp, int msgnum)
                return 0;
 
        for (i = 0; mp->msgattrs[i]; i++) {
-               if (!strcmp(mp->msgattrs[i], cp)) {
+               if (strcmp(mp->msgattrs[i], cp)==0) {
                        clear_sequence(mp, i, msgnum);
                        mp->msgflags |= SEQMOD;
                        return 1;