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/ping.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/ping.c')
-rw-r--r-- | networking/ping.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/networking/ping.c b/networking/ping.c index 47b9f8f52..ecfd125ae 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -33,13 +33,15 @@ | |||
33 | #include "busybox.h" | 33 | #include "busybox.h" |
34 | 34 | ||
35 | 35 | ||
36 | static const int DEFDATALEN = 56; | 36 | enum { |
37 | static const int MAXIPLEN = 60; | 37 | DEFDATALEN = 56, |
38 | static const int MAXICMPLEN = 76; | 38 | MAXIPLEN = 60, |
39 | static const int MAXPACKET = 65468; | 39 | MAXICMPLEN = 76, |
40 | #define MAX_DUP_CHK (8 * 128) | 40 | MAXPACKET = 65468, |
41 | static const int MAXWAIT = 10; | 41 | MAX_DUP_CHK = (8 * 128), |
42 | static const int PINGINTERVAL = 1; /* second */ | 42 | MAXWAIT = 10, |
43 | PINGINTERVAL = 1 /* second */ | ||
44 | }; | ||
43 | 45 | ||
44 | #define O_QUIET (1 << 0) | 46 | #define O_QUIET (1 << 0) |
45 | 47 | ||