diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-05 18:05:09 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-05 18:05:09 +0000 |
commit | 5af906e7c834301a0f237b50e1a1474ce0cf6da0 (patch) | |
tree | 8a5a2783a458269715a05dc48236cae8b1cb1ee0 /miscutils/devfsd.c | |
parent | 402151671b58b264f9c023e8e29615b3dc3c9acc (diff) | |
download | busybox-w32-5af906e7c834301a0f237b50e1a1474ce0cf6da0.tar.gz busybox-w32-5af906e7c834301a0f237b50e1a1474ce0cf6da0.tar.bz2 busybox-w32-5af906e7c834301a0f237b50e1a1474ce0cf6da0.zip |
rename: compare_string_array -> index_in_str_array
introduce index_in_substr_array and use it in
iproute2
Diffstat (limited to 'miscutils/devfsd.c')
-rw-r--r-- | miscutils/devfsd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index 32973d630..de046e818 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
@@ -627,7 +627,7 @@ static void process_config_line (const char *line, unsigned long *event_mask) | |||
627 | when, name, what, | 627 | when, name, what, |
628 | p[0], p[1], p[2], p[3], p[4], p[5], p[6]); | 628 | p[0], p[1], p[2], p[3], p[4], p[5], p[6]); |
629 | 629 | ||
630 | i = compare_string_array(options, when ); | 630 | i = index_in_str_array(options, when ); |
631 | 631 | ||
632 | /*"CLEAR_CONFIG"*/ | 632 | /*"CLEAR_CONFIG"*/ |
633 | if( i == 0) | 633 | if( i == 0) |
@@ -673,7 +673,7 @@ static void process_config_line (const char *line, unsigned long *event_mask) | |||
673 | goto process_config_line_err; | 673 | goto process_config_line_err; |
674 | } | 674 | } |
675 | 675 | ||
676 | i = compare_string_array(options, what ); | 676 | i = index_in_str_array(options, what ); |
677 | 677 | ||
678 | switch(i) | 678 | switch(i) |
679 | { | 679 | { |
@@ -1313,8 +1313,8 @@ static const char *get_variable (const char *variable, void *info) | |||
1313 | /* Here on error we should do exit(RV_SYS_ERROR), instead we do exit(EXIT_FAILURE) */ | 1313 | /* Here on error we should do exit(RV_SYS_ERROR), instead we do exit(EXIT_FAILURE) */ |
1314 | hostname[STRING_LENGTH - 1] = '\0'; | 1314 | hostname[STRING_LENGTH - 1] = '\0'; |
1315 | 1315 | ||
1316 | /* compare_string_array returns i>=0 */ | 1316 | /* index_in_str_array returns i>=0 */ |
1317 | i=compare_string_array(field_names, variable); | 1317 | i=index_in_str_array(field_names, variable); |
1318 | 1318 | ||
1319 | if ( i > 6 || i < 0 || (i > 1 && gv_info == NULL)) | 1319 | if ( i > 6 || i < 0 || (i > 1 && gv_info == NULL)) |
1320 | return (NULL); | 1320 | return (NULL); |