X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fftpsbr.c;h=b37d246af7fc4611b26ee89998d5a5f89d27d310;hb=d3ba09a465cb0e5fc9a74d0b152a7ed965f895cb;hp=f82f51b9965129bb165b5dd6e655c05fc15f1a9f;hpb=b0b1dd37ff515578cf7cba51625189eb34a196cb;p=mmh diff --git a/uip/ftpsbr.c b/uip/ftpsbr.c index f82f51b..b37d246 100644 --- a/uip/ftpsbr.c +++ b/uip/ftpsbr.c @@ -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)); }