diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-28 15:57:31 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-28 15:57:31 +0000 |
commit | db508e3b8223c4235318a4022c5f22da0fdd4fac (patch) | |
tree | 08e6fa2b4edf1236e5767c7981ce139711ff02b4 | |
parent | cd9d4c85a41e0efe7af615f9a8009af9ceee25d9 (diff) | |
download | busybox-w32-db508e3b8223c4235318a4022c5f22da0fdd4fac.tar.gz busybox-w32-db508e3b8223c4235318a4022c5f22da0fdd4fac.tar.bz2 busybox-w32-db508e3b8223c4235318a4022c5f22da0fdd4fac.zip |
- fix overflow; improve documentation while at it
-rw-r--r-- | modutils/modprobe.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c index 3a89d9814..afb4b3e93 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c | |||
@@ -24,18 +24,18 @@ struct mod_opt_t { /* one-way list of options to pass to a module */ | |||
24 | 24 | ||
25 | struct dep_t { /* one-way list of dependency rules */ | 25 | struct dep_t { /* one-way list of dependency rules */ |
26 | /* a dependency rule */ | 26 | /* a dependency rule */ |
27 | char * m_name; /* the module name*/ | 27 | char * m_name; /* the module name*/ |
28 | char * m_path; /* the module file path */ | 28 | char * m_path; /* the module file path */ |
29 | struct mod_opt_t * m_options; /* the module options */ | 29 | struct mod_opt_t * m_options; /* the module options */ |
30 | 30 | ||
31 | int m_isalias : 1; /* the module is an alias */ | 31 | unsigned int m_isalias :1; /* the module is an alias */ |
32 | int m_isblacklisted : 1; | 32 | unsigned int m_isblacklisted:1; /* the module is blacklisted */ |
33 | int m_reserved : 14; /* stuffin' */ | 33 | unsigned int m_reserved :14; /* stuffin' */ |
34 | 34 | ||
35 | int m_depcnt : 16; /* the number of dependable module(s) */ | 35 | unsigned int m_depcnt :16; /* the number of dependable module(s) */ |
36 | char ** m_deparr; /* the list of dependable module(s) */ | 36 | char ** m_deparr; /* the list of dependable module(s) */ |
37 | 37 | ||
38 | struct dep_t * m_next; /* the next dependency rule */ | 38 | struct dep_t * m_next; /* the next dependency rule */ |
39 | }; | 39 | }; |
40 | 40 | ||
41 | struct mod_list_t { /* two-way list of modules to process */ | 41 | struct mod_list_t { /* two-way list of modules to process */ |