summaryrefslogtreecommitdiffhomepage
path: root/networking/ftpd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-03-09 04:18:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-03-09 04:18:00 +0000
commit3455285339be8cbeaf3f1396ec290226254ba3f1 (patch)
tree3913dcda81905463e142d23c6d227aa3a22c3be5 /networking/ftpd.c
parentf1a11b5a4eca1e296a9557655c2a93fb01d5be46 (diff)
ftpd: code shrink
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r--networking/ftpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index ec9683adb..114975d02 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -954,7 +954,7 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv)
break;
cmdio_write_raw(STR(FTP_NEEDUSER)" Login with USER\r\n");
} else if (cmdval == const_QUIT) {
- cmdio_write_raw(STR(FTP_GOODBYE)" Goodbye\r\n");
+ cmdio_write_ok(FTP_GOODBYE);
return 0;
} else {
cmdio_write_raw(STR(FTP_LOGINERR)" Login with USER and PASS\r\n");
@@ -986,7 +986,7 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv)
* HELP, NOOP, QUIT.
*/
/* ACCOUNT (ACCT)
- * The argument field is a Telnet string identifying the user's account.
+ * "The argument field is a Telnet string identifying the user's account.
* The command is not necessarily related to the USER command, as some
* sites may require an account for login and others only for specific
* access, such as storing files. In the latter case the command may
@@ -999,14 +999,14 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv)
* is needed for a command issued later in the dialogue, the server
* should return a 332 or 532 reply depending on whether it stores
* (pending receipt of the ACCounT command) or discards the command,
- * respectively.
+ * respectively."
*/
while (1) {
uint32_t cmdval = cmdio_get_cmd_and_arg();
if (cmdval == const_QUIT) {
- cmdio_write_raw(STR(FTP_GOODBYE)" Goodbye\r\n");
+ cmdio_write_ok(FTP_GOODBYE);
return 0;
}
if (cmdval == const_PWD)