warning removal

Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Cristian Ionescu-Idbohrn 2011-05-20 03:52:36 +02:00 committed by Denys Vlasenko
parent 9e933d9bfc
commit ea137aa931
2 changed files with 1 additions and 8 deletions

View 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) 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); const unsigned new_value_num = search_name_hashtable(new_value);
unsigned want = get_status(status_node_num, 1); unsigned want = get_status(status_node_num, 1);
unsigned flag = get_status(status_node_num, 2); unsigned flag = get_status(status_node_num, 2);
unsigned status = get_status(status_node_num, 3); 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; char *new_status;
switch (position) { switch (position) {
case 1: case 1:
want = new_value_num; want = new_value_num;
want_len = new_value_len;
break; break;
case 2: case 2:
flag = new_value_num; flag = new_value_num;
flag_len = new_value_len;
break; break;
case 3: case 3:
status = new_value_num; status = new_value_num;
status_len = new_value_len;
break; break;
default: default:
bb_error_msg_and_die("DEBUG ONLY: this shouldnt happen"); bb_error_msg_and_die("DEBUG ONLY: this shouldnt happen");

View File

@ -563,8 +563,8 @@ static void check_suid(int applet_no)
xsetgid(rgid); /* drop all privileges */ xsetgid(rgid); /* drop all privileges */
xsetuid(ruid); xsetuid(ruid);
} }
ret: ;
# if ENABLE_FEATURE_SUID_CONFIG # if ENABLE_FEATURE_SUID_CONFIG
ret: ;
llist_free((llist_t*)suid_config, NULL); llist_free((llist_t*)suid_config, NULL);
# endif # endif
} }