--- linux-ftpd-0.17/ftpd/ftpcmd.y +++ linux-ftpd-0.17/ftpd/ftpcmd.y @@ -125,7 +125,14 @@ char cbuf[512]; char *fromname; -struct tab; +struct tab { + const char *name; + short token; + short state; + short implemented; /* 1 if command is implemented */ + const char *help; +}; + static int yylex __P((void)); static void sizecmd __P((char *)); static void help __P((struct tab *, char *)); @@ -891,13 +898,6 @@ #define SITECMD 7 /* SITE command */ #define NSTR 8 /* Number followed by a string */ -struct tab { - const char *name; - short token; - short state; - short implemented; /* 1 if command is implemented */ - const char *help; -}; struct tab cmdtab[] = { /* In order defined in RFC 765 */ { "AUTH", AUTH, STR1, 1, " auth_type" },