aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-12-12 04:28:17 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-12-12 04:28:17 +0000
commit9e697c6b489076793c2d89249adc7f45e60d5753 (patch)
treefc772182327c8aebe25f70e7f4d2591c54dca1f0
parentb49013024ae3fc31d4e30a3e57421a85f0baaef2 (diff)
downloadbusybox-w32-9e697c6b489076793c2d89249adc7f45e60d5753.tar.gz
busybox-w32-9e697c6b489076793c2d89249adc7f45e60d5753.tar.bz2
busybox-w32-9e697c6b489076793c2d89249adc7f45e60d5753.zip
Change CONFIG_MODPROBE_MULTIPOLE_OPTIONS to
CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS. git-svn-id: svn://busybox.net/trunk/busybox@12840 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--modutils/modprobe.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index 998c8668e..74fadc326 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -381,7 +381,7 @@ static int already_loaded (const char *name)
381 return 0; 381 return 0;
382} 382}
383 383
384#ifdef CONFIG_MODPROBE_MULTIPLE_OPTIONS 384#ifdef CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS
385/* static char* parse_command_string( char* src, char **dst ); 385/* static char* parse_command_string( char* src, char **dst );
386 * src: pointer to string containing argument 386 * src: pointer to string containing argument
387 * dst: pointer to where to store the parsed argument 387 * dst: pointer to where to store the parsed argument
@@ -488,25 +488,25 @@ static char *parse_command_string( char *src, char **dst )
488 *tmp_str = '\0'; 488 *tmp_str = '\0';
489 return src; 489 return src;
490} 490}
491#endif /* CONFIG_MODPROBE_MULTIPLE_OPTIONS */ 491#endif /* CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS */
492 492
493static int mod_process ( struct mod_list_t *list, int do_insert ) 493static int mod_process ( struct mod_list_t *list, int do_insert )
494{ 494{
495 int rc = 0; 495 int rc = 0;
496#ifdef CONFIG_MODPROBE_MULTIPLE_OPTIONS 496#ifdef CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS
497 char **argv = NULL; 497 char **argv = NULL;
498 char *opts; 498 char *opts;
499#ifdef CONFIG_FEATURE_CLEAN_UP 499#ifdef CONFIG_FEATURE_CLEAN_UP
500 int argc_malloc; 500 int argc_malloc;
501#endif 501#endif
502#else /* CONFIG_MODPROBE_MULTIPLE_OPTIONS */ 502#else /* CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS */
503 char *argv[10]; 503 char *argv[10];
504#endif 504#endif
505 int argc; 505 int argc;
506 506
507 while ( list ) { 507 while ( list ) {
508 argc = 0; 508 argc = 0;
509#ifdef CONFIG_MODPROBE_MULTIPLE_OPTIONS 509#ifdef CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS
510#ifdef CONFIG_FEATURE_CLEAN_UP 510#ifdef CONFIG_FEATURE_CLEAN_UP
511 argc_malloc = 0; 511 argc_malloc = 0;
512#endif 512#endif
@@ -524,7 +524,7 @@ static int mod_process ( struct mod_list_t *list, int do_insert )
524 else if(verbose) /* verbose and quiet are mutually exclusive */ 524 else if(verbose) /* verbose and quiet are mutually exclusive */
525 argv[argc++] = "-v"; 525 argv[argc++] = "-v";
526 argv[argc++] = list-> m_path; 526 argv[argc++] = list-> m_path;
527#ifdef CONFIG_MODPROBE_MULTIPLE_OPTIONS 527#ifdef CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS
528#ifdef CONFIG_FEATURE_CLEAN_UP 528#ifdef CONFIG_FEATURE_CLEAN_UP
529 argc_malloc = argc; 529 argc_malloc = argc;
530#endif 530#endif
@@ -534,10 +534,10 @@ static int mod_process ( struct mod_list_t *list, int do_insert )
534 argc++; 534 argc++;
535 argv = (char**) xrealloc( argv, ( argc + 1 ) * sizeof( char* ) ); 535 argv = (char**) xrealloc( argv, ( argc + 1 ) * sizeof( char* ) );
536 } 536 }
537#else /* CONFIG_MODPROBE_MULTIPLE_OPTIONS */ 537#else /* CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS */
538 if (list-> m_options) 538 if (list-> m_options)
539 argv[argc++] = list-> m_options; 539 argv[argc++] = list-> m_options;
540#endif /* CONFIG_MODPROBE_MULTIPLE_OPTIONS */ 540#endif /* CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS */
541 } 541 }
542 } else { 542 } else {
543 /* modutils uses short name for removal */ 543 /* modutils uses short name for removal */
@@ -546,7 +546,7 @@ static int mod_process ( struct mod_list_t *list, int do_insert )
546 if (do_syslog) 546 if (do_syslog)
547 argv[argc++] = "-s"; 547 argv[argc++] = "-s";
548 argv[argc++] = list->m_name; 548 argv[argc++] = list->m_name;
549#if ( defined CONFIG_MODPROBE_MULTIPLE_OPTIONS ) && ( defined CONFIG_FEATURE_CLEAN_UP ) 549#if ( defined CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS ) && ( defined CONFIG_FEATURE_CLEAN_UP )
550 argc_malloc = argc; 550 argc_malloc = argc;
551#endif 551#endif
552 } 552 }
@@ -589,7 +589,7 @@ static int mod_process ( struct mod_list_t *list, int do_insert )
589 rc = 0; /* success if remove any mod */ 589 rc = 0; /* success if remove any mod */
590 } 590 }
591 } 591 }
592#if ( defined CONFIG_MODPROBE_MULTIPLE_OPTIONS ) && ( defined CONFIG_FEATURE_CLEAN_UP ) 592#if ( defined CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS ) && ( defined CONFIG_FEATURE_CLEAN_UP )
593 /* the last value in the array has index == argc, but 593 /* the last value in the array has index == argc, but
594 * it is the terminatign NULL, so we must not free it. */ 594 * it is the terminatign NULL, so we must not free it. */
595 while( argc_malloc < argc ) { 595 while( argc_malloc < argc ) {
@@ -607,7 +607,7 @@ static int mod_process ( struct mod_list_t *list, int do_insert )
607 * would not load because there is no more memory, so there's no 607 * would not load because there is no more memory, so there's no
608 * problem. Hmm, wait... Is this true, whatever the allocation policy? */ 608 * problem. Hmm, wait... Is this true, whatever the allocation policy? */
609 argv = NULL; 609 argv = NULL;
610#else /* CONFIG_MODPROBE_MULTIPLE_OPTIONS && CONFIG_FEATURE_CLEAN_UP */ 610#else /* CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS && CONFIG_FEATURE_CLEAN_UP */
611 } 611 }
612#endif 612#endif
613 list = do_insert ? list-> m_prev : list-> m_next; 613 list = do_insert ? list-> m_prev : list-> m_next;