- remove warning (thanks Yann E. MORIN) and switch to ENABLE_
- typo: s/begining/beginning/g
This commit is contained in:
parent
e6d88ea2a1
commit
17d355cb3c
@ -130,7 +130,7 @@ struct mod_opt_t *append_option( struct mod_opt_t *opt_list, char *opt )
|
||||
return opt_list;
|
||||
}
|
||||
|
||||
#if (defined CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS)
|
||||
#if ENABLE_FEATURE_MODPROBE_MULTIPLE_OPTIONS
|
||||
/* static char* parse_command_string( char* src, char **dst );
|
||||
* src: pointer to string containing argument
|
||||
* dst: pointer to where to store the parsed argument
|
||||
@ -238,7 +238,7 @@ static char *parse_command_string( char *src, char **dst )
|
||||
*dst = xrealloc( *dst, strlen( *dst ) );
|
||||
return src;
|
||||
}
|
||||
#endif /* CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS */
|
||||
#endif /* ENABLE_FEATURE_MODPROBE_MULTIPLE_OPTIONS */
|
||||
|
||||
/*
|
||||
* This function builds a list of dependency rules from /lib/modules/`uname -r\modules.dep.
|
||||
@ -296,7 +296,7 @@ static struct dep_t *build_dep ( void )
|
||||
|
||||
/* Is this a new module dep description? */
|
||||
if ( !continuation_line ) {
|
||||
/* find the dep begining */
|
||||
/* find the dep beginning */
|
||||
char *col = strchr ( buffer, ':' );
|
||||
char *dot = col;
|
||||
|
||||
@ -382,7 +382,7 @@ static struct dep_t *build_dep ( void )
|
||||
else
|
||||
next = end;
|
||||
|
||||
/* find the begining of the module file name */
|
||||
/* find the beginning of the module file name */
|
||||
deps = strrchr ( p, '/' );
|
||||
|
||||
if ( !deps || ( deps < p )) {
|
||||
@ -428,7 +428,7 @@ static struct dep_t *build_dep ( void )
|
||||
|
||||
// alias parsing is not 100% correct (no correct handling of continuation lines within an alias) !
|
||||
|
||||
#if defined(CONFIG_FEATURE_2_6_MODULES)
|
||||
#if ENABLE_FEATURE_2_6_MODULES
|
||||
if (( fd = open ( "/etc/modprobe.conf", O_RDONLY )) < 0 )
|
||||
#endif
|
||||
if (( fd = open ( "/etc/modules.conf", O_RDONLY )) < 0 )
|
||||
@ -497,14 +497,14 @@ static struct dep_t *build_dep ( void )
|
||||
break;
|
||||
}
|
||||
if ( dt ) {
|
||||
if ( ENABLE_FEATURE_MODPROBE_MULTIPLE_OPTIONS ) {
|
||||
char* new_opt = NULL;
|
||||
while( ( opt = parse_command_string( opt, &new_opt ) ) ) {
|
||||
dt-> m_options = append_option( dt-> m_options, new_opt );
|
||||
}
|
||||
} else {
|
||||
dt-> m_options = append_option( dt-> m_options, opt );
|
||||
#if ENABLE_FEATURE_MODPROBE_MULTIPLE_OPTIONS
|
||||
char* new_opt = NULL;
|
||||
while( ( opt = parse_command_string( opt, &new_opt ) ) ) {
|
||||
dt-> m_options = append_option( dt-> m_options, new_opt );
|
||||
}
|
||||
#else
|
||||
dt-> m_options = append_option( dt-> m_options, opt );
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user