summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncftp/cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ncftp/cmds.c')
-rw-r--r--usr.bin/ncftp/cmds.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/ncftp/cmds.c b/usr.bin/ncftp/cmds.c
index d968467..d576803 100644
--- a/usr.bin/ncftp/cmds.c
+++ b/usr.bin/ncftp/cmds.c
@@ -623,7 +623,7 @@ int mget(int argc, char **argv)
(void) Signal(SIGINT,oldintr);
activemcmd = 0;
if (!errs)
- return NOERR;
+ return NOERR;
else
return CMDERR;
} /* mget */
@@ -908,10 +908,9 @@ int mdelete(int argc, char **argv)
}
(void) Signal(SIGINT, oldintr);
activemcmd = 0;
- if (!errs)
- return NOERR;
- else
+ if (errs > 0)
return CMDERR;
+ return NOERR;
} /* mdelete */
@@ -1349,7 +1348,7 @@ close_up_shop(void)
int rcode = 0;
if (only_once++ > 0)
- return;
+ return (0);
if (connected)
(void) disconnect(0, NULL);
rcode = WriteRecentSitesFile();
OpenPOWER on IntegriCloud