From 01cbae63566b001fc97e0370d7938e00f3b0668d Mon Sep 17 00:00:00 2001 From: yar Date: Thu, 25 Jul 2002 17:41:47 +0000 Subject: Use stuff cleanly, without introducing non-portable constants (in this case, hidden as offsets to the "?AEIL" string.) MFC after: 1 week --- libexec/ftpd/ftpcmd.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libexec/ftpd/ftpcmd.y') 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 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]); } } -- cgit v1.1