diff options
author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-01-23 22:30:04 +0000 |
---|---|---|
committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-01-23 22:30:04 +0000 |
commit | b2b4893698607c194acfd2e355154b54273b8880 (patch) | |
tree | 852d97bdc34c44dbcf29cc8b5cd9257a8c90f7b3 /modutils/lsmod.c | |
parent | fc2d2e3371dbe137decc3aa2065acd6140226f94 (diff) | |
download | busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.gz busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.bz2 busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.zip |
#define -> static const int. Also got rid of some big static buffers.
git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils/lsmod.c')
-rw-r--r-- | modutils/lsmod.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index 4c50bf4bd..586920d63 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c | |||
@@ -59,19 +59,19 @@ int query_module(const char *name, int which, void *buf, size_t bufsize, | |||
59 | size_t *ret); | 59 | size_t *ret); |
60 | 60 | ||
61 | /* Values for query_module's which. */ | 61 | /* Values for query_module's which. */ |
62 | #define QM_MODULES 1 | 62 | static const int QM_MODULES = 1; |
63 | #define QM_DEPS 2 | 63 | static const int QM_DEPS = 2; |
64 | #define QM_REFS 3 | 64 | static const int QM_REFS = 3; |
65 | #define QM_SYMBOLS 4 | 65 | static const int QM_SYMBOLS = 4; |
66 | #define QM_INFO 5 | 66 | static const int QM_INFO = 5; |
67 | 67 | ||
68 | /* Bits of module.flags. */ | 68 | /* Bits of module.flags. */ |
69 | #define NEW_MOD_RUNNING 1 | 69 | static const int NEW_MOD_RUNNING = 1; |
70 | #define NEW_MOD_DELETED 2 | 70 | static const int NEW_MOD_DELETED = 2; |
71 | #define NEW_MOD_AUTOCLEAN 4 | 71 | static const int NEW_MOD_AUTOCLEAN = 4; |
72 | #define NEW_MOD_VISITED 8 | 72 | static const int NEW_MOD_VISITED = 8; |
73 | #define NEW_MOD_USED_ONCE 16 | 73 | static const int NEW_MOD_USED_ONCE = 16; |
74 | #define NEW_MOD_INITIALIZING 64 | 74 | static const int NEW_MOD_INITIALIZING = 64; |
75 | 75 | ||
76 | 76 | ||
77 | extern int lsmod_main(int argc, char **argv) | 77 | extern int lsmod_main(int argc, char **argv) |