aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-12-02 00:01:36 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-12-02 00:01:36 +0000
commit6d6bc6e208efdcac54e0ce1487fc76732861bd79 (patch)
tree83ddadefc0a5fdf0d4722217fe4d2c9f04fc6049 /archival
parent5715527897ffb01ec5790327a90e1be47385923a (diff)
downloadbusybox-w32-6d6bc6e208efdcac54e0ce1487fc76732861bd79.tar.gz
busybox-w32-6d6bc6e208efdcac54e0ce1487fc76732861bd79.tar.bz2
busybox-w32-6d6bc6e208efdcac54e0ce1487fc76732861bd79.zip
Move compare_string_array to libbb
git-svn-id: svn://busybox.net/trunk/busybox@6073 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival')
-rw-r--r--archival/dpkg.c13
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 */
502static 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
514unsigned int fill_package_struct(char *control_buffer) 501unsigned 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));