summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2002-07-25 17:41:47 +0000
committeryar <yar@FreeBSD.org>2002-07-25 17:41:47 +0000
commit01cbae63566b001fc97e0370d7938e00f3b0668d (patch)
tree842b8d2519685ec4856b4d4c35f65b8844e4bbab /libexec/ftpd
parente96d7f22052f9700c14e497313ce169decfeba90 (diff)
downloadFreeBSD-src-01cbae63566b001fc97e0370d7938e00f3b0668d.zip
FreeBSD-src-01cbae63566b001fc97e0370d7938e00f3b0668d.tar.gz
Use <arpa/ftp.h> stuff cleanly, without introducing
non-portable constants (in this case, hidden as offsets to the "?AEIL" string.) MFC after: 1 week
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpcmd.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index 97ae6fb..2ddbf75 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -95,6 +95,7 @@ extern int readonly;
extern int noepsv;
extern int noretr;
extern int noguestretr;
+extern char *typenames[]; /* defined in <arpa/ftp.h> included from ftpd.c */
off_t restart_point;
@@ -1601,7 +1602,8 @@ sizecmd(char *filename)
reply(213, "%qd", count);
break; }
default:
- reply(504, "SIZE not implemented for Type %c.", "?AEIL"[type]);
+ reply(504, "SIZE not implemented for type %s.",
+ typenames[type]);
}
}
OpenPOWER on IntegriCloud