summaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenis Vlasenko2008-08-27 22:29:43 +0000
committerDenis Vlasenko2008-08-27 22:29:43 +0000
commit18c93029fdd80cca3a6baafe125de2254ebe4cfc (patch)
tree4f09a65dbb055cdb5779e6ec80364bdab1527ebd /networking/udhcp
parent8f0e34280342f069cbd026112a7012e5edb356b2 (diff)
downloadbusybox-18c93029fdd80cca3a6baafe125de2254ebe4cfc.zip
busybox-18c93029fdd80cca3a6baafe125de2254ebe4cfc.tar.gz
insmod: shrink
function old new delta obj_allocate_commons 488 462 -26 insmod_main 3830 3714 -116
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/dhcpc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 5caa00c..92ebe36 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -259,9 +259,10 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
if (opt & OPT_o)
client_config.no_default_options = 1;
while (list_O) {
- int n = index_in_strings(dhcp_option_strings, llist_pop(&list_O));
+ char *optstr = llist_pop(&list_O);
+ int n = index_in_strings(dhcp_option_strings, optstr);
if (n < 0)
- bb_error_msg_and_die("unknown option '%s'", list_O->data);
+ bb_error_msg_and_die("unknown option '%s'", optstr);
n = dhcp_options[n].code;
client_config.opt_mask[n >> 3] |= 1 << (n & 7);
}