diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-10 19:22:06 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-10 19:22:06 +0000 |
commit | 07ea853040a1240d40fefe5bb871a5c3c98c77a6 (patch) | |
tree | beb32cedafc6232bf8a49fe90f0769d471ea6791 /modutils/lsmod.c | |
parent | 8ee3984df387bf31ba1d652a861d7fedbac7bfa8 (diff) | |
download | busybox-w32-07ea853040a1240d40fefe5bb871a5c3c98c77a6.tar.gz busybox-w32-07ea853040a1240d40fefe5bb871a5c3c98c77a6.tar.bz2 busybox-w32-07ea853040a1240d40fefe5bb871a5c3c98c77a6.zip |
Patch from Denis Vlasenko turning static const int (which gets emitted into
the busybox binary) into enums (which don't).
git-svn-id: svn://busybox.net/trunk/busybox@14513 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils/lsmod.c')
-rw-r--r-- | modutils/lsmod.c | 24 |
1 files changed, 13 insertions, 11 deletions
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 | ||
83 | int query_module(const char *name, int which, void *buf, size_t bufsize, size_t *ret); | 83 | int query_module(const char *name, int which, void *buf, size_t bufsize, size_t *ret); |
84 | 84 | ||
85 | enum { | ||
85 | /* Values for query_module's which. */ | 86 | /* Values for query_module's which. */ |
86 | static const int QM_MODULES = 1; | 87 | QM_MODULES = 1, |
87 | static const int QM_DEPS = 2; | 88 | QM_DEPS = 2, |
88 | static const int QM_REFS = 3; | 89 | QM_REFS = 3, |
89 | static const int QM_SYMBOLS = 4; | 90 | QM_SYMBOLS = 4, |
90 | static const int QM_INFO = 5; | 91 | QM_INFO = 5, |
91 | 92 | ||
92 | /* Bits of module.flags. */ | 93 | /* Bits of module.flags. */ |
93 | static const int NEW_MOD_RUNNING = 1; | 94 | NEW_MOD_RUNNING = 1, |
94 | static const int NEW_MOD_DELETED = 2; | 95 | NEW_MOD_DELETED = 2, |
95 | static const int NEW_MOD_AUTOCLEAN = 4; | 96 | NEW_MOD_AUTOCLEAN = 4, |
96 | static const int NEW_MOD_VISITED = 8; | 97 | NEW_MOD_VISITED = 8, |
97 | static const int NEW_MOD_USED_ONCE = 16; | 98 | NEW_MOD_USED_ONCE = 16, |
98 | static const int NEW_MOD_INITIALIZING = 64; | 99 | NEW_MOD_INITIALIZING = 64 |
100 | }; | ||
99 | 101 | ||
100 | int lsmod_main(int argc, char **argv) | 102 | int lsmod_main(int argc, char **argv) |
101 | { | 103 | { |