Explicit checks for return values of strcmp().
[mmh] / uip / ftpsbr.c
index f82f51b..b37d246 100644 (file)
@@ -261,9 +261,9 @@ bad: ;
                return NOTOK;
        }
 
-       istore = !strcmp(cmd, "STOR");
+       istore = (strcmp(cmd, "STOR")==0);
 
-       if ((istdio = !strcmp(local, "-")))
+       if ((istdio = strcmp(local, "-")==0))
                fp = istore ? stdin : stdout;
        else
                if ((fp = fopen(local, istore ? "r" : "w")) == NULL) {
@@ -451,7 +451,7 @@ vcommand(int complete, va_list ap)
                return NOTOK;
        }
 
-       return(getreply(complete, !strcmp(buffer, "QUIT")));
+       return(getreply(complete, strcmp(buffer, "QUIT")==0));
 }