diff options
Diffstat (limited to 'util-linux/getopt.c')
-rw-r--r-- | util-linux/getopt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/getopt.c b/util-linux/getopt.c index 0ebf9df08..ff55a3e3c 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c | |||
@@ -53,9 +53,9 @@ | |||
53 | 53 | ||
54 | /* NON_OPT is the code that is returned when a non-option is found in '+' | 54 | /* NON_OPT is the code that is returned when a non-option is found in '+' |
55 | mode */ | 55 | mode */ |
56 | #define NON_OPT 1 | 56 | static const int NON_OPT = 1; |
57 | /* LONG_OPT is the code that is returned when a long option is found. */ | 57 | /* LONG_OPT is the code that is returned when a long option is found. */ |
58 | #define LONG_OPT 2 | 58 | static const int LONG_OPT = 2; |
59 | 59 | ||
60 | /* The shells recognized. */ | 60 | /* The shells recognized. */ |
61 | typedef enum {BASH,TCSH} shell_t; | 61 | typedef enum {BASH,TCSH} shell_t; |
@@ -199,7 +199,7 @@ int generate_output(char * argv[],int argc,const char *optstr, | |||
199 | static struct option *long_options=NULL; | 199 | static struct option *long_options=NULL; |
200 | static int long_options_length=0; /* Length of array */ | 200 | static int long_options_length=0; /* Length of array */ |
201 | static int long_options_nr=0; /* Nr of used elements in array */ | 201 | static int long_options_nr=0; /* Nr of used elements in array */ |
202 | #define LONG_OPTIONS_INCR 10 | 202 | static const int LONG_OPTIONS_INCR = 10; |
203 | #define init_longopt() add_longopt(NULL,0) | 203 | #define init_longopt() add_longopt(NULL,0) |
204 | 204 | ||
205 | /* Register a long option. The contents of name is copied. */ | 205 | /* Register a long option. The contents of name is copied. */ |