diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-02 00:01:36 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-02 00:01:36 +0000 |
commit | b963875a3e7c57f7cce58205f15bbf426b796927 (patch) | |
tree | 83ddadefc0a5fdf0d4722217fe4d2c9f04fc6049 /archival | |
parent | f112daa232122dd114933d04a9e415cfc61f1717 (diff) | |
download | busybox-w32-b963875a3e7c57f7cce58205f15bbf426b796927.tar.gz busybox-w32-b963875a3e7c57f7cce58205f15bbf426b796927.tar.bz2 busybox-w32-b963875a3e7c57f7cce58205f15bbf426b796927.zip |
Move compare_string_array to libbb
Diffstat (limited to 'archival')
-rw-r--r-- | archival/dpkg.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 23509fcb5..274d711dc 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -498,19 +498,6 @@ void free_package(common_node_t *node) | |||
498 | } | 498 | } |
499 | } | 499 | } |
500 | 500 | ||
501 | /* returns the array number of the string */ | ||
502 | static unsigned short compare_string_array(const char *string_array[], const char *key) | ||
503 | { | ||
504 | unsigned short i; | ||
505 | |||
506 | for (i = 0; string_array[i] != 0; i++) { | ||
507 | if (strcmp(string_array[i], key) == 0) { | ||
508 | break; | ||
509 | } | ||
510 | } | ||
511 | return(i); | ||
512 | } | ||
513 | |||
514 | unsigned int fill_package_struct(char *control_buffer) | 501 | unsigned int fill_package_struct(char *control_buffer) |
515 | { | 502 | { |
516 | common_node_t *new_node = (common_node_t *) xcalloc(1, sizeof(common_node_t)); | 503 | common_node_t *new_node = (common_node_t *) xcalloc(1, sizeof(common_node_t)); |