diff options
author | Cristian Ionescu-Idbohrn | 2011-05-20 03:52:36 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-05-20 03:52:36 +0200 |
commit | ea137aa931f1b109a966ff685d9b79b39f7180b4 (patch) | |
tree | 498c87ef947edd5c435c8ad56fc18ad2387a4dec /archival/dpkg.c | |
parent | 9e933d9bfc7f52a7d8bc61805f70e3039b30216f (diff) | |
download | busybox-ea137aa931f1b109a966ff685d9b79b39f7180b4.zip busybox-ea137aa931f1b109a966ff685d9b79b39f7180b4.tar.gz |
warning removal
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/dpkg.c')
-rw-r--r-- | archival/dpkg.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index f8e349d..8899d17 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c @@ -702,28 +702,21 @@ static unsigned get_status(const unsigned status_node, const int num) static void set_status(const unsigned status_node_num, const char *new_value, const int position) { - const unsigned new_value_len = strlen(new_value); const unsigned new_value_num = search_name_hashtable(new_value); unsigned want = get_status(status_node_num, 1); unsigned flag = get_status(status_node_num, 2); unsigned status = get_status(status_node_num, 3); - int want_len = strlen(name_hashtable[want]); - int flag_len = strlen(name_hashtable[flag]); - int status_len = strlen(name_hashtable[status]); char *new_status; switch (position) { case 1: want = new_value_num; - want_len = new_value_len; break; case 2: flag = new_value_num; - flag_len = new_value_len; break; case 3: status = new_value_num; - status_len = new_value_len; break; default: bb_error_msg_and_die("DEBUG ONLY: this shouldnt happen"); |