From db508e3b8223c4235318a4022c5f22da0fdd4fac Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 28 May 2008 15:57:31 +0000 Subject: - fix overflow; improve documentation while at it --- modutils/modprobe.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'modutils/modprobe.c') 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 */ struct dep_t { /* one-way list of dependency rules */ /* a dependency rule */ - char * m_name; /* the module name*/ - char * m_path; /* the module file path */ - struct mod_opt_t * m_options; /* the module options */ + char * m_name; /* the module name*/ + char * m_path; /* the module file path */ + struct mod_opt_t * m_options; /* the module options */ - int m_isalias : 1; /* the module is an alias */ - int m_isblacklisted : 1; - int m_reserved : 14; /* stuffin' */ + unsigned int m_isalias :1; /* the module is an alias */ + unsigned int m_isblacklisted:1; /* the module is blacklisted */ + unsigned int m_reserved :14; /* stuffin' */ - int m_depcnt : 16; /* the number of dependable module(s) */ - char ** m_deparr; /* the list of dependable module(s) */ + unsigned int m_depcnt :16; /* the number of dependable module(s) */ + char ** m_deparr; /* the list of dependable module(s) */ - struct dep_t * m_next; /* the next dependency rule */ + struct dep_t * m_next; /* the next dependency rule */ }; struct mod_list_t { /* two-way list of modules to process */ -- cgit v1.2.3