aboutsummaryrefslogtreecommitdiff
path: root/getopt.c
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-23 22:30:04 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-23 22:30:04 +0000
commitb2b4893698607c194acfd2e355154b54273b8880 (patch)
tree852d97bdc34c44dbcf29cc8b5cd9257a8c90f7b3 /getopt.c
parentfc2d2e3371dbe137decc3aa2065acd6140226f94 (diff)
downloadbusybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.gz
busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.bz2
busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.zip
#define -> static const int. Also got rid of some big static buffers.
git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'getopt.c')
-rw-r--r--getopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/getopt.c b/getopt.c
index 0ebf9df08..ff55a3e3c 100644
--- a/getopt.c
+++ b/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 56static 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 58static const int LONG_OPT = 2;
59 59
60/* The shells recognized. */ 60/* The shells recognized. */
61typedef enum {BASH,TCSH} shell_t; 61typedef enum {BASH,TCSH} shell_t;
@@ -199,7 +199,7 @@ int generate_output(char * argv[],int argc,const char *optstr,
199static struct option *long_options=NULL; 199static struct option *long_options=NULL;
200static int long_options_length=0; /* Length of array */ 200static int long_options_length=0; /* Length of array */
201static int long_options_nr=0; /* Nr of used elements in array */ 201static int long_options_nr=0; /* Nr of used elements in array */
202#define LONG_OPTIONS_INCR 10 202static 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. */