diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-09 21:24:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-09 21:24:12 +0000 |
commit | 3e6ff9017f5aa4ea41de2520a3f6d29fb20e0332 (patch) | |
tree | c9e6d3d695cbb2449132428a32fb6c309aad870f /getopt.c | |
parent | dd91724aa089e344d0f05e40a338dcce481c1845 (diff) | |
download | busybox-w32-3e6ff9017f5aa4ea41de2520a3f6d29fb20e0332.tar.gz busybox-w32-3e6ff9017f5aa4ea41de2520a3f6d29fb20e0332.tar.bz2 busybox-w32-3e6ff9017f5aa4ea41de2520a3f6d29fb20e0332.zip |
A cleanup patch from Jeff Garzik to static-ify a number of
namespace polluting things that really should be static.
Diffstat (limited to 'getopt.c')
-rw-r--r-- | getopt.c | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -62,20 +62,19 @@ typedef enum {BASH,TCSH} shell_t; | |||
62 | 62 | ||
63 | 63 | ||
64 | /* Some global variables that tells us how to parse. */ | 64 | /* Some global variables that tells us how to parse. */ |
65 | shell_t shell=BASH; /* The shell we generate output for. */ | 65 | static shell_t shell=BASH; /* The shell we generate output for. */ |
66 | int quiet_errors=0; /* 0 is not quiet. */ | 66 | static int quiet_errors=0; /* 0 is not quiet. */ |
67 | int quiet_output=0; /* 0 is not quiet. */ | 67 | static int quiet_output=0; /* 0 is not quiet. */ |
68 | int quote=1; /* 1 is do quote. */ | 68 | static int quote=1; /* 1 is do quote. */ |
69 | int alternative=0; /* 0 is getopt_long, 1 is getopt_long_only */ | 69 | static int alternative=0; /* 0 is getopt_long, 1 is getopt_long_only */ |
70 | 70 | ||
71 | /* Function prototypes */ | 71 | /* Function prototypes */ |
72 | const char *normalize(const char *arg); | 72 | static const char *normalize(const char *arg); |
73 | int generate_output(char * argv[],int argc,const char *optstr, | 73 | static int generate_output(char * argv[],int argc,const char *optstr, |
74 | const struct option *longopts); | 74 | const struct option *longopts); |
75 | void add_long_options(char *options); | 75 | static void add_long_options(char *options); |
76 | void add_longopt(const char *name,int has_arg); | 76 | static void add_longopt(const char *name,int has_arg); |
77 | void set_shell(const char *new_shell); | 77 | static void set_shell(const char *new_shell); |
78 | void set_initial_shell(void); | ||
79 | 78 | ||
80 | 79 | ||
81 | /* | 80 | /* |