aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-04-04 02:12:03 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-04-04 02:12:03 +0200
commit9c0ea86caa2170aee0638b9a8120aeb0f66ca5be (patch)
treeca7654a889e3a67abbae5ecca5166b10bb5934be /networking
parent7379cd1ca19446547782edaaed727dcbe65103be (diff)
downloadbusybox-w32-9c0ea86caa2170aee0638b9a8120aeb0f66ca5be.tar.gz
busybox-w32-9c0ea86caa2170aee0638b9a8120aeb0f66ca5be.tar.bz2
busybox-w32-9c0ea86caa2170aee0638b9a8120aeb0f66ca5be.zip
udhcpc: trivial shrink
function old new delta udhcpc_main 2801 2785 -16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/udhcp/dhcpc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 53e10d00e..1caf89559 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -909,14 +909,12 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
909 client_config.opt_mask[n >> 3] |= 1 << (n & 7); 909 client_config.opt_mask[n >> 3] |= 1 << (n & 7);
910 } 910 }
911 while (list_x) { 911 while (list_x) {
912 unsigned n;
913 char *optstr = llist_pop(&list_x); 912 char *optstr = llist_pop(&list_x);
914 char *colon = strchr(optstr, ':'); 913 char *colon = strchr(optstr, ':');
915 if (colon) 914 if (colon)
916 *colon = '\0';
917 n = udhcp_option_idx(optstr);
918 if (colon)
919 *colon = ' '; 915 *colon = ' ';
916 /* now it looks similar to udhcpd's config file line:
917 * "optname optval", using the common routine: */
920 udhcp_str2optset(optstr, &client_config.options); 918 udhcp_str2optset(optstr, &client_config.options);
921 } 919 }
922 920