From b963875a3e7c57f7cce58205f15bbf426b796927 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Mon, 2 Dec 2002 00:01:36 +0000 Subject: Move compare_string_array to libbb --- archival/dpkg.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'archival') 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) } } -/* returns the array number of the string */ -static unsigned short compare_string_array(const char *string_array[], const char *key) -{ - unsigned short i; - - for (i = 0; string_array[i] != 0; i++) { - if (strcmp(string_array[i], key) == 0) { - break; - } - } - return(i); -} - unsigned int fill_package_struct(char *control_buffer) { common_node_t *new_node = (common_node_t *) xcalloc(1, sizeof(common_node_t)); -- cgit v1.2.3