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 /networking/ping6.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 'networking/ping6.c')
-rw-r--r-- | networking/ping6.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/networking/ping6.c b/networking/ping6.c index 42cf2785c..72d1d667a 100644 --- a/networking/ping6.c +++ b/networking/ping6.c | |||
@@ -56,13 +56,15 @@ | |||
56 | #include <stddef.h> /* offsetof */ | 56 | #include <stddef.h> /* offsetof */ |
57 | #include "busybox.h" | 57 | #include "busybox.h" |
58 | 58 | ||
59 | static const int DEFDATALEN = 56; | 59 | enum { |
60 | static const int MAXIPLEN = 60; | 60 | DEFDATALEN = 56, |
61 | static const int MAXICMPLEN = 76; | 61 | MAXIPLEN = 60, |
62 | static const int MAXPACKET = 65468; | 62 | MAXICMPLEN = 76, |
63 | #define MAX_DUP_CHK (8 * 128) | 63 | MAXPACKET = 65468, |
64 | static const int MAXWAIT = 10; | 64 | MAX_DUP_CHK = (8 * 128), |
65 | static const int PINGINTERVAL = 1; /* second */ | 65 | MAXWAIT = 10, |
66 | PINGINTERVAL = 1 /* second */ | ||
67 | }; | ||
66 | 68 | ||
67 | #define O_QUIET (1 << 0) | 69 | #define O_QUIET (1 << 0) |
68 | #define O_VERBOSE (1 << 1) | 70 | #define O_VERBOSE (1 << 1) |