aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-03-10 19:22:06 +0000
committerRob Landley <rob@landley.net>2006-03-10 19:22:06 +0000
commitbc68cd14ccaebc17e7e03a08e51fddfb91007624 (patch)
treebeb32cedafc6232bf8a49fe90f0769d471ea6791
parentdae6aa28598cb2353291f18ca52e768c3259165a (diff)
downloadbusybox-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).
-rw-r--r--archival/gzip.c12
-rw-r--r--archival/libunarchive/decompress_unzip.c2
-rw-r--r--console-tools/chvt.c6
-rw-r--r--console-tools/deallocvt.c2
-rw-r--r--console-tools/loadfont.c16
-rw-r--r--console-tools/setkeycodes.c4
-rw-r--r--coreutils/cut.c8
-rw-r--r--coreutils/stty.c13
-rw-r--r--editors/awk.c2
-rw-r--r--editors/vi.c26
-rw-r--r--init/init.c25
-rw-r--r--libbb/get_console.c2
-rw-r--r--libbb/speed_table.c2
-rw-r--r--libbb/xreadlink.c2
-rw-r--r--modutils/insmod.c39
-rw-r--r--modutils/lsmod.c24
-rw-r--r--networking/dnsd.c16
-rw-r--r--networking/fakeidentd.c2
-rw-r--r--networking/ping.c16
-rw-r--r--networking/ping6.c16
-rw-r--r--networking/telnet.c14
-rw-r--r--networking/zcip.c24
-rw-r--r--shell/lash.c12
-rw-r--r--util-linux/fbset.c28
-rw-r--r--util-linux/fsck_minix.c51
-rw-r--r--util-linux/getopt.c8
-rw-r--r--util-linux/mkswap.c2
-rw-r--r--util-linux/nfsmount.c64
28 files changed, 244 insertions, 194 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index 783a453a7..fa6e85b66 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -732,25 +732,26 @@ static unsigned match_start; /* start of matching string */
732static int eofile; /* flag set at end of input file */ 732static int eofile; /* flag set at end of input file */
733static unsigned lookahead; /* number of valid bytes ahead in window */ 733static unsigned lookahead; /* number of valid bytes ahead in window */
734 734
735static const unsigned max_chain_length = 4096; 735enum {
736 max_chain_length = 4096,
736 737
737/* To speed up deflation, hash chains are never searched beyond this length. 738/* To speed up deflation, hash chains are never searched beyond this length.
738 * A higher limit improves compression ratio but degrades the speed. 739 * A higher limit improves compression ratio but degrades the speed.
739 */ 740 */
740 741
741static const unsigned int max_lazy_match = 258; 742 max_lazy_match = 258,
742 743
743/* Attempt to find a better match only when the current match is strictly 744/* Attempt to find a better match only when the current match is strictly
744 * smaller than this value. This mechanism is used only for compression 745 * smaller than this value. This mechanism is used only for compression
745 * levels >= 4. 746 * levels >= 4.
746 */ 747 */
747#define max_insert_length max_lazy_match 748 max_insert_length = max_lazy_match,
748/* Insert new strings in the hash table only if the match length 749/* Insert new strings in the hash table only if the match length
749 * is not greater than this length. This saves time but degrades compression. 750 * is not greater than this length. This saves time but degrades compression.
750 * max_insert_length is used only for compression levels <= 3. 751 * max_insert_length is used only for compression levels <= 3.
751 */ 752 */
752 753
753static const unsigned good_match = 32; 754 good_match = 32,
754 755
755/* Use a faster search when the previous match is longer than this */ 756/* Use a faster search when the previous match is longer than this */
756 757
@@ -761,12 +762,13 @@ static const unsigned good_match = 32;
761 * found for specific files. 762 * found for specific files.
762 */ 763 */
763 764
764static const int nice_match = 258; /* Stop searching when current match exceeds this */ 765 nice_match = 258 /* Stop searching when current match exceeds this */
765 766
766/* Note: the deflate() code requires max_lazy >= MIN_MATCH and max_chain >= 4 767/* Note: the deflate() code requires max_lazy >= MIN_MATCH and max_chain >= 4
767 * For deflate_fast() (levels <= 3) good is ignored and lazy has a different 768 * For deflate_fast() (levels <= 3) good is ignored and lazy has a different
768 * meaning. 769 * meaning.
769 */ 770 */
771};
770 772
771#define EQUAL 0 773#define EQUAL 0
772/* result of memcmp for equal strings */ 774/* result of memcmp for equal strings */
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c
index 7776dee69..7c43bed12 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -92,7 +92,7 @@ static unsigned int gunzip_outbuf_count; /* bytes in output buffer */
92 92
93/* gunzip_window size--must be a power of two, and 93/* gunzip_window size--must be a power of two, and
94 * at least 32K for zip's deflate method */ 94 * at least 32K for zip's deflate method */
95static const unsigned int gunzip_wsize = 0x8000; 95enum { gunzip_wsize = 0x8000 };
96static unsigned char *gunzip_window; 96static unsigned char *gunzip_window;
97 97
98static unsigned int *gunzip_crc_table; 98static unsigned int *gunzip_crc_table;
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index b1a429eb3..252aed740 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -29,8 +29,10 @@
29#include "busybox.h" 29#include "busybox.h"
30 30
31/* From <linux/vt.h> */ 31/* From <linux/vt.h> */
32static const int VT_ACTIVATE = 0x5606; /* make vt active */ 32enum {
33static const int VT_WAITACTIVE = 0x5607; /* wait for vt active */ 33 VT_ACTIVATE = 0x5606, /* make vt active */
34 VT_WAITACTIVE = 0x5607 /* wait for vt active */
35};
34 36
35int chvt_main(int argc, char **argv) 37int chvt_main(int argc, char **argv)
36{ 38{
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c
index 00ddf4236..ad3cebfef 100644
--- a/console-tools/deallocvt.c
+++ b/console-tools/deallocvt.c
@@ -30,7 +30,7 @@
30#include "busybox.h" 30#include "busybox.h"
31 31
32/* From <linux/vt.h> */ 32/* From <linux/vt.h> */
33static const int VT_DISALLOCATE = 0x5608; /* free memory associated to vt */ 33enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */
34 34
35int deallocvt_main(int argc, char *argv[]) 35int deallocvt_main(int argc, char *argv[])
36{ 36{
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c
index 31c6d2495..31221e080 100644
--- a/console-tools/loadfont.c
+++ b/console-tools/loadfont.c
@@ -21,13 +21,15 @@
21#include <endian.h> 21#include <endian.h>
22#include "busybox.h" 22#include "busybox.h"
23 23
24static const int PSF_MAGIC1 = 0x36; 24enum{
25static const int PSF_MAGIC2 = 0x04; 25 PSF_MAGIC1 = 0x36,
26 26 PSF_MAGIC2 = 0x04,
27static const int PSF_MODE512 = 0x01; 27
28static const int PSF_MODEHASTAB = 0x02; 28 PSF_MODE512 = 0x01,
29static const int PSF_MAXMODE = 0x03; 29 PSF_MODEHASTAB = 0x02,
30static const int PSF_SEPARATOR = 0xFFFF; 30 PSF_MAXMODE = 0x03,
31 PSF_SEPARATOR = 0xFFFF
32};
31 33
32struct psf_header { 34struct psf_header {
33 unsigned char magic1, magic2; /* Magic number */ 35 unsigned char magic1, magic2; /* Magic number */
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c
index efb6e658f..dacf37b12 100644
--- a/console-tools/setkeycodes.c
+++ b/console-tools/setkeycodes.c
@@ -33,7 +33,9 @@
33struct kbkeycode { 33struct kbkeycode {
34 unsigned int scancode, keycode; 34 unsigned int scancode, keycode;
35}; 35};
36static const int KDSETKEYCODE = 0x4B4D; /* write kernel keycode table entry */ 36enum {
37 KDSETKEYCODE = 0x4B4D /* write kernel keycode table entry */
38};
37 39
38extern int 40extern int
39setkeycodes_main(int argc, char** argv) 41setkeycodes_main(int argc, char** argv)
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
48static const int BOL = 0; 48enum {
49static const int EOL = INT_MAX; 49 BOL = 0,
50static const int NON_RANGE = -1; 50 EOL = INT_MAX,
51 NON_RANGE = -1
52};
51 53
52static struct cut_list *cut_lists = NULL; /* growable array holding a series of lists */ 54static struct cut_list *cut_lists = NULL; /* growable array holding a series of lists */
53static unsigned int nlists = 0; /* number of elements in above list */ 55static unsigned int nlists = 0; /* number of elements in above list */
diff --git a/coreutils/stty.c b/coreutils/stty.c
index a3526136f..8b70af65e 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -343,9 +343,10 @@ static const struct mode_info mode_info[] = {
343 MI_ENTRY(stty_dec, combination, OMIT, 0, 0 ), 343 MI_ENTRY(stty_dec, combination, OMIT, 0, 0 ),
344}; 344};
345 345
346static const int NUM_mode_info = 346enum {
347 347 NUM_mode_info =
348 (sizeof(mode_info) / sizeof(struct mode_info)); 348 (sizeof(mode_info) / sizeof(struct mode_info))
349};
349 350
350/* Control character settings. */ 351/* Control character settings. */
351struct control_info { 352struct control_info {
@@ -395,8 +396,10 @@ static const struct control_info control_info[] = {
395 {stty_time, 0, VTIME}, 396 {stty_time, 0, VTIME},
396}; 397};
397 398
398static const int NUM_control_info = 399enum {
399 (sizeof(control_info) / sizeof(struct control_info)); 400 NUM_control_info =
401 (sizeof(control_info) / sizeof(struct control_info))
402};
400 403
401#define EMT(t) ((enum mode_type)(t)) 404#define EMT(t) ((enum mode_type)(t))
402 405
diff --git a/editors/awk.c b/editors/awk.c
index 65856aa55..cce3b562a 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -392,7 +392,7 @@ static char * vValues =
392/* hash size may grow to these values */ 392/* hash size may grow to these values */
393#define FIRST_PRIME 61; 393#define FIRST_PRIME 61;
394static const unsigned int PRIMES[] = { 251, 1021, 4093, 16381, 65521 }; 394static const unsigned int PRIMES[] = { 251, 1021, 4093, 16381, 65521 };
395static const unsigned int NPRIMES = sizeof(PRIMES) / sizeof(unsigned int); 395enum { NPRIMES = sizeof(PRIMES) / sizeof(unsigned int) };
396 396
397/* globals */ 397/* globals */
398 398
diff --git a/editors/vi.c b/editors/vi.c
index 4dcef68f9..3bf9ac3f9 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -138,18 +138,20 @@ static const char CMup[] = "\033[A";
138static const char CMdown[] = "\n"; 138static const char CMdown[] = "\n";
139 139
140 140
141static const int YANKONLY = FALSE; 141enum {
142static const int YANKDEL = TRUE; 142 YANKONLY = FALSE,
143static const int FORWARD = 1; // code depends on "1" for array index 143 YANKDEL = TRUE,
144static const int BACK = -1; // code depends on "-1" for array index 144 FORWARD = 1, // code depends on "1" for array index
145static const int LIMITED = 0; // how much of text[] in char_search 145 BACK = -1, // code depends on "-1" for array index
146static const int FULL = 1; // how much of text[] in char_search 146 LIMITED = 0, // how much of text[] in char_search
147 147 FULL = 1, // how much of text[] in char_search
148static const int S_BEFORE_WS = 1; // used in skip_thing() for moving "dot" 148
149static const int S_TO_WS = 2; // used in skip_thing() for moving "dot" 149 S_BEFORE_WS = 1, // used in skip_thing() for moving "dot"
150static const int S_OVER_WS = 3; // used in skip_thing() for moving "dot" 150 S_TO_WS = 2, // used in skip_thing() for moving "dot"
151static const int S_END_PUNCT = 4; // used in skip_thing() for moving "dot" 151 S_OVER_WS = 3, // used in skip_thing() for moving "dot"
152static const int S_END_ALNUM = 5; // used in skip_thing() for moving "dot" 152 S_END_PUNCT = 4, // used in skip_thing() for moving "dot"
153 S_END_ALNUM = 5 // used in skip_thing() for moving "dot"
154};
153 155
154typedef unsigned char Byte; 156typedef unsigned char Byte;
155 157
diff --git a/init/init.c b/init/init.c
index b7bc7ef9f..2ddcef936 100644
--- a/init/init.c
+++ b/init/init.c
@@ -47,7 +47,7 @@ struct vt_stat {
47 unsigned short v_signal; /* signal to send */ 47 unsigned short v_signal; /* signal to send */
48 unsigned short v_state; /* vt bitmask */ 48 unsigned short v_state; /* vt bitmask */
49}; 49};
50static const int VT_GETSTATE = 0x5603; /* get global vt state info */ 50enum { VT_GETSTATE = 0x5603 }; /* get global vt state info */
51 51
52/* From <linux/serial.h> */ 52/* From <linux/serial.h> */
53struct serial_struct { 53struct serial_struct {
@@ -145,22 +145,25 @@ static char console[CONSOLE_BUFF_SIZE] = _PATH_CONSOLE;
145static char *log_console = VC_5; 145static char *log_console = VC_5;
146#endif 146#endif
147static sig_atomic_t got_cont = 0; 147static sig_atomic_t got_cont = 0;
148static const int LOG = 0x1; 148
149static const int CONSOLE = 0x2; 149enum {
150 LOG = 0x1,
151 CONSOLE = 0x2,
150 152
151#if defined CONFIG_FEATURE_EXTRA_QUIET 153#if defined CONFIG_FEATURE_EXTRA_QUIET
152static const int MAYBE_CONSOLE = 0x0; 154 MAYBE_CONSOLE = 0x0,
153#else 155#else
154#define MAYBE_CONSOLE CONSOLE 156 MAYBE_CONSOLE = CONSOLE,
155#endif 157#endif
156#ifndef RB_HALT_SYSTEM
157static const int RB_HALT_SYSTEM = 0xcdef0123;
158static const int RB_ENABLE_CAD = 0x89abcdef;
159static const int RB_DISABLE_CAD = 0;
160 158
161#define RB_POWER_OFF 0x4321fedc 159#ifndef RB_HALT_SYSTEM
162static const int RB_AUTOBOOT = 0x01234567; 160 RB_HALT_SYSTEM = 0xcdef0123,
161 RB_ENABLE_CAD = 0x89abcdef,
162 RB_DISABLE_CAD = 0,
163 RB_POWER_OFF = 0x4321fedc,
164 RB_AUTOBOOT = 0x01234567,
163#endif 165#endif
166};
164 167
165static const char * const environment[] = { 168static const char * const environment[] = {
166 "HOME=/", 169 "HOME=/",
diff --git a/libbb/get_console.c b/libbb/get_console.c
index bfb7468a8..a5903d0c3 100644
--- a/libbb/get_console.c
+++ b/libbb/get_console.c
@@ -30,7 +30,7 @@
30 30
31 31
32/* From <linux/kd.h> */ 32/* From <linux/kd.h> */
33static const int KDGKBTYPE = 0x4B33; /* get keyboard type */ 33enum { KDGKBTYPE = 0x4B33 }; /* get keyboard type */
34 34
35 35
36static int open_a_console(const char *fnam) 36static int open_a_console(const char *fnam)
diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index b04429e91..4075562db 100644
--- a/libbb/speed_table.c
+++ b/libbb/speed_table.c
@@ -67,7 +67,7 @@ static const struct speed_map speeds[] = {
67#endif 67#endif
68}; 68};
69 69
70static const int NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)); 70enum { NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)) };
71 71
72unsigned long bb_baud_to_value(speed_t speed) 72unsigned long bb_baud_to_value(speed_t speed)
73{ 73{
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c
index 1bc166bbc..c7227d1dd 100644
--- a/libbb/xreadlink.c
+++ b/libbb/xreadlink.c
@@ -15,7 +15,7 @@
15 15
16char *xreadlink(const char *path) 16char *xreadlink(const char *path)
17{ 17{
18 static const int GROWBY = 80; /* how large we will grow strings by */ 18 enum { GROWBY = 80 }; /* how large we will grow strings by */
19 19
20 char *buf = NULL; 20 char *buf = NULL;
21 int bufsize = 0, readsize = 0; 21 int bufsize = 0, readsize = 0;
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 8b112787f..26dd9783b 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -343,7 +343,7 @@ extern int insmod_ng_main( int argc, char **argv);
343 343
344 344
345#ifndef MODUTILS_MODULE_H 345#ifndef MODUTILS_MODULE_H
346static const int MODUTILS_MODULE_H = 1; 346/* Why? static const int MODUTILS_MODULE_H = 1;*/
347 347
348#ident "$Id: insmod.c,v 1.126 2004/12/26 09:13:32 vapier Exp $" 348#ident "$Id: insmod.c,v 1.126 2004/12/26 09:13:32 vapier Exp $"
349 349
@@ -364,9 +364,11 @@ static const int MODUTILS_MODULE_H = 1;
364#undef tgt_sizeof_char_p 364#undef tgt_sizeof_char_p
365#undef tgt_sizeof_void_p 365#undef tgt_sizeof_void_p
366#undef tgt_long 366#undef tgt_long
367static const int tgt_sizeof_long = 8; 367enum {
368static const int tgt_sizeof_char_p = 8; 368 tgt_sizeof_long = 8,
369static const int tgt_sizeof_void_p = 8; 369 tgt_sizeof_char_p = 8,
370 tgt_sizeof_void_p = 8
371};
370#define tgt_long long long 372#define tgt_long long long
371#endif 373#endif
372 374
@@ -441,23 +443,26 @@ struct new_module_info
441}; 443};
442 444
443/* Bits of module.flags. */ 445/* Bits of module.flags. */
444static const int NEW_MOD_RUNNING = 1; 446enum {
445static const int NEW_MOD_DELETED = 2; 447 NEW_MOD_RUNNING = 1,
446static const int NEW_MOD_AUTOCLEAN = 4; 448 NEW_MOD_DELETED = 2,
447static const int NEW_MOD_VISITED = 8; 449 NEW_MOD_AUTOCLEAN = 4,
448static const int NEW_MOD_USED_ONCE = 16; 450 NEW_MOD_VISITED = 8,
451 NEW_MOD_USED_ONCE = 16
452};
449 453
450int init_module(const char *name, const struct new_module *); 454int init_module(const char *name, const struct new_module *);
451int query_module(const char *name, int which, void *buf, 455int query_module(const char *name, int which, void *buf,
452 size_t bufsize, size_t *ret); 456 size_t bufsize, size_t *ret);
453 457
454/* Values for query_module's which. */ 458/* Values for query_module's which. */
455 459enum {
456static const int QM_MODULES = 1; 460 QM_MODULES = 1,
457static const int QM_DEPS = 2; 461 QM_DEPS = 2,
458static const int QM_REFS = 3; 462 QM_REFS = 3,
459static const int QM_SYMBOLS = 4; 463 QM_SYMBOLS = 4,
460static const int QM_INFO = 5; 464 QM_INFO = 5
465};
461 466
462/*======================================================================*/ 467/*======================================================================*/
463/* The system calls unchanged between 2.0 and 2.1. */ 468/* The system calls unchanged between 2.0 and 2.1. */
@@ -501,7 +506,7 @@ int delete_module(const char *);
501 506
502 507
503#ifndef MODUTILS_OBJ_H 508#ifndef MODUTILS_OBJ_H
504static const int MODUTILS_OBJ_H = 1; 509/* Why? static const int MODUTILS_OBJ_H = 1; */
505 510
506#ident "$Id: insmod.c,v 1.126 2004/12/26 09:13:32 vapier Exp $" 511#ident "$Id: insmod.c,v 1.126 2004/12/26 09:13:32 vapier Exp $"
507 512
@@ -700,7 +705,7 @@ static int obj_gpl_license(struct obj_file *f, const char **license);
700 705
701 706
702#define _PATH_MODULES "/lib/modules" 707#define _PATH_MODULES "/lib/modules"
703static const int STRVERSIONLEN = 32; 708enum { STRVERSIONLEN = 32 };
704 709
705/*======================================================================*/ 710/*======================================================================*/
706 711
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index 82136dd0f..3bbf89e58 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -82,20 +82,22 @@ struct module_info
82 82
83int query_module(const char *name, int which, void *buf, size_t bufsize, size_t *ret); 83int query_module(const char *name, int which, void *buf, size_t bufsize, size_t *ret);
84 84
85enum {
85/* Values for query_module's which. */ 86/* Values for query_module's which. */
86static const int QM_MODULES = 1; 87 QM_MODULES = 1,
87static const int QM_DEPS = 2; 88 QM_DEPS = 2,
88static const int QM_REFS = 3; 89 QM_REFS = 3,
89static const int QM_SYMBOLS = 4; 90 QM_SYMBOLS = 4,
90static const int QM_INFO = 5; 91 QM_INFO = 5,
91 92
92/* Bits of module.flags. */ 93/* Bits of module.flags. */
93static const int NEW_MOD_RUNNING = 1; 94 NEW_MOD_RUNNING = 1,
94static const int NEW_MOD_DELETED = 2; 95 NEW_MOD_DELETED = 2,
95static const int NEW_MOD_AUTOCLEAN = 4; 96 NEW_MOD_AUTOCLEAN = 4,
96static const int NEW_MOD_VISITED = 8; 97 NEW_MOD_VISITED = 8,
97static const int NEW_MOD_USED_ONCE = 16; 98 NEW_MOD_USED_ONCE = 16,
98static const int NEW_MOD_INITIALIZING = 64; 99 NEW_MOD_INITIALIZING = 64
100};
99 101
100int lsmod_main(int argc, char **argv) 102int lsmod_main(int argc, char **argv)
101{ 103{
diff --git a/networking/dnsd.c b/networking/dnsd.c
index 433b12443..9ca4105d3 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -27,11 +27,12 @@ static char *fileconf = "/etc/dnsd.conf";
27#define LOCK_FILE "/var/run/dnsd.lock" 27#define LOCK_FILE "/var/run/dnsd.lock"
28#define LOG_FILE "/var/log/dnsd.log" 28#define LOG_FILE "/var/log/dnsd.log"
29 29
30#define MAX_HOST_LEN 16 // longest host name allowed is 15 30enum {
31#define IP_STRING_LEN 18 // .xxx.xxx.xxx.xxx\0 31 MAX_HOST_LEN = 16, // longest host name allowed is 15
32 IP_STRING_LEN = 18, // .xxx.xxx.xxx.xxx\0
32 33
33//must be strlen('.in-addr.arpa') larger than IP_STRING_LEN 34//must be strlen('.in-addr.arpa') larger than IP_STRING_LEN
34static const int MAX_NAME_LEN = (IP_STRING_LEN + 13); 35 MAX_NAME_LEN = (IP_STRING_LEN + 13),
35 36
36/* Cannot get bigger packets than 512 per RFC1035 37/* Cannot get bigger packets than 512 per RFC1035
37 In practice this can be set considerably smaller: 38 In practice this can be set considerably smaller:
@@ -39,12 +40,13 @@ static const int MAX_NAME_LEN = (IP_STRING_LEN + 13);
39 ttl(4B) + rlen(2B) + r (MAX_NAME_LEN =21B) + 40 ttl(4B) + rlen(2B) + r (MAX_NAME_LEN =21B) +
40 2*querystring (2 MAX_NAME_LEN= 42B), all together 90 Byte 41 2*querystring (2 MAX_NAME_LEN= 42B), all together 90 Byte
41*/ 42*/
42static const int MAX_PACK_LEN = 512 + 1; 43 MAX_PACK_LEN = 512 + 1,
43 44
44#define DEFAULT_TTL 30; // increase this when not testing? 45 DEFAULT_TTL = 30, // increase this when not testing?
45 46
46static const int REQ_A = 1; 47 REQ_A = 1,
47static const int REQ_PTR = 12; 48 REQ_PTR = 12
49};
48 50
49struct dns_repl { // resource record, add 0 or 1 to accepted dns_msg in resp 51struct dns_repl { // resource record, add 0 or 1 to accepted dns_msg in resp
50 uint16_t rlen; 52 uint16_t rlen;
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c
index c7fb42fc4..5442c22c2 100644
--- a/networking/fakeidentd.c
+++ b/networking/fakeidentd.c
@@ -51,7 +51,7 @@
51#define MAXIDLETIME 45 51#define MAXIDLETIME 45
52 52
53static const char ident_substr[] = " : USERID : UNIX : "; 53static const char ident_substr[] = " : USERID : UNIX : ";
54static const int ident_substr_len = sizeof(ident_substr) - 1; 54enum { ident_substr_len = sizeof(ident_substr) - 1 };
55#define PIDFILE "/var/run/identd.pid" 55#define PIDFILE "/var/run/identd.pid"
56 56
57/* 57/*
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
36static const int DEFDATALEN = 56; 36enum {
37static const int MAXIPLEN = 60; 37 DEFDATALEN = 56,
38static const int MAXICMPLEN = 76; 38 MAXIPLEN = 60,
39static const int MAXPACKET = 65468; 39 MAXICMPLEN = 76,
40#define MAX_DUP_CHK (8 * 128) 40 MAXPACKET = 65468,
41static const int MAXWAIT = 10; 41 MAX_DUP_CHK = (8 * 128),
42static 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
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
59static const int DEFDATALEN = 56; 59enum {
60static const int MAXIPLEN = 60; 60 DEFDATALEN = 56,
61static const int MAXICMPLEN = 76; 61 MAXIPLEN = 60,
62static const int MAXPACKET = 65468; 62 MAXICMPLEN = 76,
63#define MAX_DUP_CHK (8 * 128) 63 MAXPACKET = 65468,
64static const int MAXWAIT = 10; 64 MAX_DUP_CHK = (8 * 128),
65static 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)
diff --git a/networking/telnet.c b/networking/telnet.c
index ca4896bf0..2ad44d429 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -35,7 +35,7 @@
35#include "busybox.h" 35#include "busybox.h"
36 36
37#if 0 37#if 0
38static const int DOTRACE = 1; 38enum { DOTRACE = 1 };
39#endif 39#endif
40 40
41#ifdef DOTRACE 41#ifdef DOTRACE
@@ -55,14 +55,14 @@ static const int DOTRACE = 1;
55#define DATABUFSIZE 128 55#define DATABUFSIZE 128
56#define IACBUFSIZE 128 56#define IACBUFSIZE 128
57 57
58static const int CHM_TRY = 0; 58enum {
59static const int CHM_ON = 1; 59 CHM_TRY = 0,
60static const int CHM_OFF = 2; 60 CHM_ON = 1,
61 CHM_OFF = 2,
61 62
62static const int UF_ECHO = 0x01; 63 UF_ECHO = 0x01,
63static const int UF_SGA = 0x02; 64 UF_SGA = 0x02,
64 65
65enum {
66 TS_0 = 1, 66 TS_0 = 1,
67 TS_IAC = 2, 67 TS_IAC = 2,
68 TS_OPT = 3, 68 TS_OPT = 3,
diff --git a/networking/zcip.c b/networking/zcip.c
index 11b2db526..716c4a5e1 100644
--- a/networking/zcip.c
+++ b/networking/zcip.c
@@ -62,20 +62,22 @@ struct arp_packet {
62 struct in_addr target_ip; 62 struct in_addr target_ip;
63} ATTRIBUTE_PACKED; 63} ATTRIBUTE_PACKED;
64 64
65enum {
65/* 169.254.0.0 */ 66/* 169.254.0.0 */
66static const uint32_t LINKLOCAL_ADDR = 0xa9fe0000; 67 LINKLOCAL_ADDR = 0xa9fe0000,
67 68
68/* protocol timeout parameters, specified in seconds */ 69/* protocol timeout parameters, specified in seconds */
69static const unsigned PROBE_WAIT = 1; 70 PROBE_WAIT = 1,
70static const unsigned PROBE_MIN = 1; 71 PROBE_MIN = 1,
71static const unsigned PROBE_MAX = 2; 72 PROBE_MAX = 2,
72static const unsigned PROBE_NUM = 3; 73 PROBE_NUM = 3,
73static const unsigned MAX_CONFLICTS = 10; 74 MAX_CONFLICTS = 10,
74static const unsigned RATE_LIMIT_INTERVAL = 60; 75 RATE_LIMIT_INTERVAL = 60,
75static const unsigned ANNOUNCE_WAIT = 2; 76 ANNOUNCE_WAIT = 2,
76static const unsigned ANNOUNCE_NUM = 2; 77 ANNOUNCE_NUM = 2,
77static const unsigned ANNOUNCE_INTERVAL = 2; 78 ANNOUNCE_INTERVAL = 2,
78static const time_t DEFEND_INTERVAL = 10; 79 DEFEND_INTERVAL = 10
80};
79 81
80static const unsigned char ZCIP_VERSION[] = "0.75 (18 April 2005)"; 82static const unsigned char ZCIP_VERSION[] = "0.75 (18 April 2005)";
81static char *prog; 83static char *prog;
diff --git a/shell/lash.c b/shell/lash.c
index 968396e41..8e8d45ae9 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -57,11 +57,13 @@ enum redir_type { REDIRECT_INPUT, REDIRECT_OVERWRITE,
57}; 57};
58#endif 58#endif
59 59
60static const unsigned int DEFAULT_CONTEXT=0x1; 60enum {
61static const unsigned int IF_TRUE_CONTEXT=0x2; 61 DEFAULT_CONTEXT = 0x1,
62static const unsigned int IF_FALSE_CONTEXT=0x4; 62 IF_TRUE_CONTEXT = 0x2,
63static const unsigned int THEN_EXP_CONTEXT=0x8; 63 IF_FALSE_CONTEXT = 0x4,
64static const unsigned int ELSE_EXP_CONTEXT=0x10; 64 THEN_EXP_CONTEXT = 0x8,
65 ELSE_EXP_CONTEXT = 0x10
66};
65 67
66#ifdef CONFIG_LASH_PIPE_N_REDIRECTS 68#ifdef CONFIG_LASH_PIPE_N_REDIRECTS
67struct redir_struct { 69struct redir_struct {
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 2e895be8d..d2667cf84 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -38,11 +38,11 @@
38#define DEFAULTFBDEV FB_0 38#define DEFAULTFBDEV FB_0
39#define DEFAULTFBMODE "/etc/fb.modes" 39#define DEFAULTFBMODE "/etc/fb.modes"
40 40
41static const int OPT_CHANGE = (1 << 0);
42static const int OPT_INFO = (1 << 1);
43static const int OPT_READMODE = (1 << 2);
44
45enum { 41enum {
42 OPT_CHANGE = (1 << 0),
43 OPT_INFO = (1 << 1),
44 OPT_READMODE = (1 << 2),
45
46 CMD_FB = 1, 46 CMD_FB = 1,
47 CMD_DB = 2, 47 CMD_DB = 2,
48 CMD_GEOMETRY = 3, 48 CMD_GEOMETRY = 3,
@@ -84,8 +84,10 @@ enum {
84static unsigned int g_options = 0; 84static unsigned int g_options = 0;
85 85
86/* Stuff stolen from the kernel's fb.h */ 86/* Stuff stolen from the kernel's fb.h */
87static const int FBIOGET_VSCREENINFO = 0x4600; 87enum {
88static const int FBIOPUT_VSCREENINFO = 0x4601; 88 FBIOGET_VSCREENINFO = 0x4600,
89 FBIOPUT_VSCREENINFO = 0x4601
90};
89struct fb_bitfield { 91struct fb_bitfield {
90 uint32_t offset; /* beginning of bitfield */ 92 uint32_t offset; /* beginning of bitfield */
91 uint32_t length; /* length of bitfield */ 93 uint32_t length; /* length of bitfield */
@@ -179,12 +181,14 @@ static const struct cmdoptions_t {
179 181
180#ifdef CONFIG_FEATURE_FBSET_READMODE 182#ifdef CONFIG_FEATURE_FBSET_READMODE
181/* taken from linux/fb.h */ 183/* taken from linux/fb.h */
182static const int FB_VMODE_INTERLACED = 1; /* interlaced */ 184enum {
183static const int FB_VMODE_DOUBLE = 2; /* double scan */ 185 FB_VMODE_INTERLACED = 1, /* interlaced */
184static const int FB_SYNC_HOR_HIGH_ACT = 1; /* horizontal sync high active */ 186 FB_VMODE_DOUBLE = 2, /* double scan */
185static const int FB_SYNC_VERT_HIGH_ACT = 2; /* vertical sync high active */ 187 FB_SYNC_HOR_HIGH_ACT = 1, /* horizontal sync high active */
186static const int FB_SYNC_EXT = 4; /* external sync */ 188 FB_SYNC_VERT_HIGH_ACT = 2, /* vertical sync high active */
187static const int FB_SYNC_COMP_HIGH_ACT = 8; /* composite sync high active */ 189 FB_SYNC_EXT = 4, /* external sync */
190 FB_SYNC_COMP_HIGH_ACT = 8 /* composite sync high active */
191};
188#endif 192#endif
189static int readmode(struct fb_var_screeninfo *base, const char *fn, 193static int readmode(struct fb_var_screeninfo *base, const char *fn,
190 const char *mode) 194 const char *mode)
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 1d3e90aa8..d7d81f130 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -98,26 +98,8 @@
98#include <sys/param.h> 98#include <sys/param.h>
99#include "busybox.h" 99#include "busybox.h"
100 100
101static const int MINIX_ROOT_INO = 1; 101#define BLOCK_SIZE_BITS 10
102static const int MINIX_LINK_MAX = 250; 102#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
103static const int MINIX2_LINK_MAX = 65530;
104
105static const int MINIX_I_MAP_SLOTS = 8;
106static const int MINIX_Z_MAP_SLOTS = 64;
107static const int MINIX_SUPER_MAGIC = 0x137F; /* original minix fs */
108static const int MINIX_SUPER_MAGIC2 = 0x138F; /* minix fs, 30 char names */
109static const int MINIX2_SUPER_MAGIC = 0x2468; /* minix V2 fs */
110static const int MINIX2_SUPER_MAGIC2 = 0x2478; /* minix V2 fs, 30 char names */
111static const int MINIX_VALID_FS = 0x0001; /* Clean fs. */
112static const int MINIX_ERROR_FS = 0x0002; /* fs has errors. */
113
114#define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode)))
115#define MINIX2_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix2_inode)))
116
117static const int MINIX_V1 = 0x0001; /* original minix fs */
118static const int MINIX_V2 = 0x0002; /* minix V2 fs */
119
120#define INODE_VERSION(inode) inode->i_sb->u.minix_sb.s_version
121 103
122/* 104/*
123 * This is the original minix inode layout on disk. 105 * This is the original minix inode layout on disk.
@@ -151,6 +133,29 @@ struct minix2_inode {
151 uint32_t i_zone[10]; 133 uint32_t i_zone[10];
152}; 134};
153 135
136enum {
137 MINIX_ROOT_INO = 1,
138 MINIX_LINK_MAX = 250,
139 MINIX2_LINK_MAX = 65530,
140
141 MINIX_I_MAP_SLOTS = 8,
142 MINIX_Z_MAP_SLOTS = 64,
143 MINIX_SUPER_MAGIC = 0x137F, /* original minix fs */
144 MINIX_SUPER_MAGIC2 = 0x138F, /* minix fs, 30 char names */
145 MINIX2_SUPER_MAGIC = 0x2468, /* minix V2 fs */
146 MINIX2_SUPER_MAGIC2 = 0x2478, /* minix V2 fs, 30 char names */
147 MINIX_VALID_FS = 0x0001, /* Clean fs. */
148 MINIX_ERROR_FS = 0x0002, /* fs has errors. */
149
150 MINIX_INODES_PER_BLOCK = ((BLOCK_SIZE)/(sizeof (struct minix_inode))),
151 MINIX2_INODES_PER_BLOCK = ((BLOCK_SIZE)/(sizeof (struct minix2_inode))),
152
153 MINIX_V1 = 0x0001, /* original minix fs */
154 MINIX_V2 = 0x0002 /* minix V2 fs */
155};
156
157#define INODE_VERSION(inode) inode->i_sb->u.minix_sb.s_version
158
154/* 159/*
155 * minix super-block data on disk 160 * minix super-block data on disk
156 */ 161 */
@@ -172,8 +177,6 @@ struct minix_dir_entry {
172 char name[0]; 177 char name[0];
173}; 178};
174 179
175#define BLOCK_SIZE_BITS 10
176#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
177 180
178#define NAME_MAX 255 /* # chars in a file name */ 181#define NAME_MAX 255 /* # chars in a file name */
179 182
@@ -187,7 +190,7 @@ struct minix_dir_entry {
187#define volatile 190#define volatile
188#endif 191#endif
189 192
190static const int ROOT_INO = 1; 193enum { ROOT_INO = 1 };
191 194
192#define UPPER(size,n) ((size+((n)-1))/(n)) 195#define UPPER(size,n) ((size+((n)-1))/(n))
193#define INODE_SIZE (sizeof(struct minix_inode)) 196#define INODE_SIZE (sizeof(struct minix_inode))
@@ -219,7 +222,7 @@ static struct termios termios;
219static int termios_set = 0; 222static int termios_set = 0;
220 223
221/* File-name data */ 224/* File-name data */
222static const int MAX_DEPTH = 32; 225enum { MAX_DEPTH = 32 };
223static int name_depth = 0; 226static int name_depth = 0;
224// static char name_list[MAX_DEPTH][BUFSIZ + 1]; 227// static char name_list[MAX_DEPTH][BUFSIZ + 1];
225static char **name_list = NULL; 228static char **name_list = NULL;
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index 16dcbbca0..9e33b79bf 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -53,9 +53,11 @@
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 */
56static const int NON_OPT = 1; 56enum {
57 NON_OPT = 1,
57/* LONG_OPT is the code that is returned when a long option is found. */ 58/* LONG_OPT is the code that is returned when a long option is found. */
58static const int LONG_OPT = 2; 59 LONG_OPT = 2
60};
59 61
60/* The shells recognized. */ 62/* The shells recognized. */
61typedef enum {BASH,TCSH} shell_t; 63typedef enum {BASH,TCSH} shell_t;
@@ -195,7 +197,7 @@ int generate_output(char * argv[],int argc,const char *optstr,
195static struct option *long_options; 197static struct option *long_options;
196static int long_options_length; /* Length of array */ 198static int long_options_length; /* Length of array */
197static int long_options_nr; /* Nr of used elements in array */ 199static int long_options_nr; /* Nr of used elements in array */
198static const int LONG_OPTIONS_INCR = 10; 200enum { LONG_OPTIONS_INCR = 10 };
199#define init_longopt() add_longopt(NULL,0) 201#define init_longopt() add_longopt(NULL,0)
200 202
201/* Register a long option. The contents of name is copied. */ 203/* Register a long option. The contents of name is copied. */
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index e203f0db6..4107329a6 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -48,7 +48,7 @@
48 48
49#ifndef _IO 49#ifndef _IO
50/* pre-1.3.45 */ 50/* pre-1.3.45 */
51static const int BLKGETSIZE = 0x1260; 51enum { BLKGETSIZE = 0x1260 };
52#else 52#else
53/* same on i386, m68k, arm; different on alpha, mips, sparc, ppc */ 53/* same on i386, m68k, arm; different on alpha, mips, sparc, ppc */
54#define BLKGETSIZE _IO(0x12,96) 54#define BLKGETSIZE _IO(0x12,96)
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index a51fe817e..1acec606f 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -105,13 +105,14 @@ enum nfs_stat {
105#define NFS_PROGRAM 100003 105#define NFS_PROGRAM 100003
106 106
107 107
108 108enum {
109#ifndef NFS_FHSIZE 109#ifndef NFS_FHSIZE
110static const int NFS_FHSIZE = 32; 110 NFS_FHSIZE = 32,
111#endif 111#endif
112#ifndef NFS_PORT 112#ifndef NFS_PORT
113static const int NFS_PORT = 2049; 113 NFS_PORT = 2049
114#endif 114#endif
115};
115 116
116/* Disable the nls stuff */ 117/* Disable the nls stuff */
117# undef bindtextdomain 118# undef bindtextdomain
@@ -119,19 +120,21 @@ static const int NFS_PORT = 2049;
119# undef textdomain 120# undef textdomain
120# define textdomain(Domain) /* empty */ 121# define textdomain(Domain) /* empty */
121 122
122static const int MS_MGC_VAL = 0xc0ed0000; /* Magic number indicatng "new" flags */ 123enum {
123static const int MS_RDONLY = 1; /* Mount read-only */ 124 MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */
124static const int MS_NOSUID = 2; /* Ignore suid and sgid bits */ 125 MS_RDONLY = 1, /* Mount read-only */
125static const int MS_NODEV = 4; /* Disallow access to device special files */ 126 MS_NOSUID = 2, /* Ignore suid and sgid bits */
126static const int MS_NOEXEC = 8; /* Disallow program execution */ 127 MS_NODEV = 4, /* Disallow access to device special files */
127static const int MS_SYNCHRONOUS = 16; /* Writes are synced at once */ 128 MS_NOEXEC = 8, /* Disallow program execution */
128static const int MS_REMOUNT = 32; /* Alter flags of a mounted FS */ 129 MS_SYNCHRONOUS = 16, /* Writes are synced at once */
129static const int MS_MANDLOCK = 64; /* Allow mandatory locks on an FS */ 130 MS_REMOUNT = 32, /* Alter flags of a mounted FS */
130static const int S_QUOTA = 128; /* Quota initialized for file/directory/symlink */ 131 MS_MANDLOCK = 64, /* Allow mandatory locks on an FS */
131static const int S_APPEND = 256; /* Append-only file */ 132 S_QUOTA = 128, /* Quota initialized for file/directory/symlink */
132static const int S_IMMUTABLE = 512; /* Immutable file */ 133 S_APPEND = 256, /* Append-only file */
133static const int MS_NOATIME = 1024; /* Do not update access times. */ 134 S_IMMUTABLE = 512, /* Immutable file */
134static const int MS_NODIRATIME = 2048; /* Do not update directory access times */ 135 MS_NOATIME = 1024, /* Do not update access times. */
136 MS_NODIRATIME = 2048 /* Do not update directory access times */
137};
135 138
136 139
137/* 140/*
@@ -177,17 +180,18 @@ struct nfs_mount_data {
177}; 180};
178 181
179/* bits in the flags field */ 182/* bits in the flags field */
180 183enum {
181static const int NFS_MOUNT_SOFT = 0x0001; /* 1 */ 184 NFS_MOUNT_SOFT = 0x0001, /* 1 */
182static const int NFS_MOUNT_INTR = 0x0002; /* 1 */ 185 NFS_MOUNT_INTR = 0x0002, /* 1 */
183static const int NFS_MOUNT_SECURE = 0x0004; /* 1 */ 186 NFS_MOUNT_SECURE = 0x0004, /* 1 */
184static const int NFS_MOUNT_POSIX = 0x0008; /* 1 */ 187 NFS_MOUNT_POSIX = 0x0008, /* 1 */
185static const int NFS_MOUNT_NOCTO = 0x0010; /* 1 */ 188 NFS_MOUNT_NOCTO = 0x0010, /* 1 */
186static const int NFS_MOUNT_NOAC = 0x0020; /* 1 */ 189 NFS_MOUNT_NOAC = 0x0020, /* 1 */
187static const int NFS_MOUNT_TCP = 0x0040; /* 2 */ 190 NFS_MOUNT_TCP = 0x0040, /* 2 */
188static const int NFS_MOUNT_VER3 = 0x0080; /* 3 */ 191 NFS_MOUNT_VER3 = 0x0080, /* 3 */
189static const int NFS_MOUNT_KERBEROS = 0x0100; /* 3 */ 192 NFS_MOUNT_KERBEROS = 0x0100, /* 3 */
190static const int NFS_MOUNT_NONLM = 0x0200; /* 3 */ 193 NFS_MOUNT_NONLM = 0x0200 /* 3 */
194};
191 195
192 196
193#define UTIL_LINUX_VERSION "2.10m" 197#define UTIL_LINUX_VERSION "2.10m"
@@ -213,8 +217,10 @@ static char *nfs_strerror(int status);
213#define MAKE_VERSION(p,q,r) (65536*(p) + 256*(q) + (r)) 217#define MAKE_VERSION(p,q,r) (65536*(p) + 256*(q) + (r))
214#define MAX_NFSPROT ((nfs_mount_version >= 4) ? 3 : 2) 218#define MAX_NFSPROT ((nfs_mount_version >= 4) ? 3 : 2)
215 219
216static const int EX_FAIL = 32; /* mount failure */ 220enum {
217static const int EX_BG = 256; /* retry in background (internal only) */ 221 EX_FAIL = 32, /* mount failure */
222 EX_BG = 256 /* retry in background (internal only) */
223};
218 224
219 225
220/* 226/*