Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ftpd Reorder some declarations so that parsers gener...



details:   https://anonhg.NetBSD.org/src/rev/490ef3784124
branches:  trunk
changeset: 572495:490ef3784124
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jan 05 10:31:27 2005 +0000

description:
Reorder some declarations so that parsers generated by bison can compile.
Fix from Michael Richardson.

diffstat:

 libexec/ftpd/ftpcmd.y |  19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diffs (47 lines):

diff -r e6713640178d -r 490ef3784124 libexec/ftpd/ftpcmd.y
--- a/libexec/ftpd/ftpcmd.y     Wed Jan 05 10:25:43 2005 +0000
+++ b/libexec/ftpd/ftpcmd.y     Wed Jan 05 10:31:27 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpcmd.y,v 1.81 2004/11/05 21:45:36 dsl Exp $  */
+/*     $NetBSD: ftpcmd.y,v 1.82 2005/01/05 10:31:27 lukem Exp $        */
 
 /*-
  * Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
 #if 0
 static char sccsid[] = "@(#)ftpcmd.y   8.3 (Berkeley) 4/6/94";
 #else
-__RCSID("$NetBSD: ftpcmd.y,v 1.81 2004/11/05 21:45:36 dsl Exp $");
+__RCSID("$NetBSD: ftpcmd.y,v 1.82 2005/01/05 10:31:27 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -118,6 +118,14 @@
 char   *cmdp;
 char   *fromname;
 
+extern int     epsvall;
+struct tab     sitetab[];
+
+static int     check_write(const char *, int);
+static void    help(struct tab *, const char *);
+static void    port_check(const char *, int);
+       int     yylex(void);
+
 %}
 
 %union {
@@ -1293,13 +1301,6 @@
        { NULL,         0,      0,      0,      NULL }
 };
 
-static int     check_write(const char *, int);
-static void    help(struct tab *, const char *);
-static void    port_check(const char *, int);
-       int     yylex(void);
-
-extern int epsvall;
-
 /*
  * Check if a filename is allowed to be modified (isupload == 0) or
  * uploaded (isupload == 1), and if necessary, check the filename is `sane'.



Home | Main Index | Thread Index | Old Index