diff options
author | obrien <obrien@FreeBSD.org> | 2009-04-07 20:34:34 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2009-04-07 20:34:34 +0000 |
commit | 674fad26001326281e48b976062632083509e088 (patch) | |
tree | 7e9a758ab2b26ba9e59739c80e693caba430ca2b /libexec | |
parent | c51d7427dc709424de46fae0cef08698149bfbba (diff) | |
download | FreeBSD-src-674fad26001326281e48b976062632083509e088.zip FreeBSD-src-674fad26001326281e48b976062632083509e088.tar.gz |
Move variable externs into extern.h so they are checked against the definitions.
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ftpd/extern.h | 29 | ||||
-rw-r--r-- | libexec/ftpd/ftpcmd.y | 27 | ||||
-rw-r--r-- | libexec/ftpd/ftpd.c | 3 |
3 files changed, 29 insertions, 30 deletions
diff --git a/libexec/ftpd/extern.h b/libexec/ftpd/extern.h index d869f67..895f8ae 100644 --- a/libexec/ftpd/extern.h +++ b/libexec/ftpd/extern.h @@ -73,6 +73,35 @@ void yyerror(char *); int yyparse(void); int ls_main(int, char **); +extern int assumeutf8; +extern char cbuf[]; +extern union sockunion data_dest; +extern int epsvall; +extern int form; +extern int ftpdebug; +extern int guest; +extern union sockunion his_addr; +extern char *homedir; +extern int hostinfo; +extern char *hostname; +extern int maxtimeout; +extern int logged_in; +extern int logging; +extern int noepsv; +extern int noguestretr; +extern int noretr; +extern int paranoid; +extern struct passwd *pw; +extern int pdata; +extern char proctitle[]; +extern int readonly; +extern off_t restart_point; +extern int timeout; +extern char tmpline[]; +extern int type; +extern char *typenames[]; /* defined in <arpa/ftp.h> included from ftpd.c */ +extern int usedefault; + struct sockaddr_in; struct sockaddr_in6; union sockunion { diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index fcef73e..07ece34 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -76,31 +76,6 @@ __FBSDID("$FreeBSD$"); #include "extern.h" #include "pathnames.h" -extern union sockunion data_dest, his_addr; -extern int hostinfo; -extern int logged_in; -extern struct passwd *pw; -extern int guest; -extern char *homedir; -extern int paranoid; -extern int logging; -extern int type; -extern int form; -extern int ftpdebug; -extern int timeout; -extern int maxtimeout; -extern int pdata; -extern char *hostname; -extern char proctitle[]; -extern int usedefault; -extern char tmpline[]; -extern int readonly; -extern int assumeutf8; -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; static int cmd_type; @@ -110,8 +85,6 @@ static int state; char cbuf[512]; char *fromname = NULL; -extern int epsvall; - %} %union { diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 59dc71c..32c15f8 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -105,9 +105,6 @@ __FBSDID("$FreeBSD$"); static char version[] = "Version 6.00LS"; #undef main -extern off_t restart_point; -extern char cbuf[]; - union sockunion ctrl_addr; union sockunion data_source; union sockunion data_dest; |