diff options
author | Rob Landley <rob@landley.net> | 2006-03-10 19:22:06 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-10 19:22:06 +0000 |
commit | bc68cd14ccaebc17e7e03a08e51fddfb91007624 (patch) | |
tree | beb32cedafc6232bf8a49fe90f0769d471ea6791 /coreutils/cut.c | |
parent | dae6aa28598cb2353291f18ca52e768c3259165a (diff) | |
download | busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.tar.gz busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.tar.bz2 busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.zip |
Patch from Denis Vlasenko turning static const int (which gets emitted into
the busybox binary) into enums (which don't).
Diffstat (limited to 'coreutils/cut.c')
-rw-r--r-- | coreutils/cut.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c index 526a99393..11e9d5e87 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c | |||
@@ -45,9 +45,11 @@ struct cut_list { | |||
45 | int endpos; | 45 | int endpos; |
46 | }; | 46 | }; |
47 | 47 | ||
48 | static const int BOL = 0; | 48 | enum { |
49 | static const int EOL = INT_MAX; | 49 | BOL = 0, |
50 | static const int NON_RANGE = -1; | 50 | EOL = INT_MAX, |
51 | NON_RANGE = -1 | ||
52 | }; | ||
51 | 53 | ||
52 | static struct cut_list *cut_lists = NULL; /* growable array holding a series of lists */ | 54 | static struct cut_list *cut_lists = NULL; /* growable array holding a series of lists */ |
53 | static unsigned int nlists = 0; /* number of elements in above list */ | 55 | static unsigned int nlists = 0; /* number of elements in above list */ |