warning removal
authorCristian Ionescu-Idbohrn <cii@axis.com>
Fri, 20 May 2011 01:52:36 +0000 (03:52 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 20 May 2011 01:52:36 +0000 (03:52 +0200)
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/dpkg.c
libbb/appletlib.c

index f8e349d09317ae6e682a1954d6ac1288dbb0d7e1..8899d17199daf18368c2d9b413fb6d6c6f5de6e7 100644 (file)
@@ -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");
index 30224ed945c6c7166417983ea59351478ff3c8bf..0dac0ba14f0d780d442925aadb9f01a5f6ca3194 100644 (file)
@@ -563,8 +563,8 @@ static void check_suid(int applet_no)
                xsetgid(rgid);  /* drop all privileges */
                xsetuid(ruid);
        }
- ret: ;
 #  if ENABLE_FEATURE_SUID_CONFIG
+ ret: ;
        llist_free((llist_t*)suid_config, NULL);
 #  endif
 }