diff options
author | Denys Vlasenko | 2010-04-04 02:12:03 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-04-04 02:12:03 +0200 |
commit | 9c0ea86caa2170aee0638b9a8120aeb0f66ca5be (patch) | |
tree | ca7654a889e3a67abbae5ecca5166b10bb5934be /networking | |
parent | 7379cd1ca19446547782edaaed727dcbe65103be (diff) | |
download | busybox-9c0ea86caa2170aee0638b9a8120aeb0f66ca5be.zip busybox-9c0ea86caa2170aee0638b9a8120aeb0f66ca5be.tar.gz |
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.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 53e10d0..1caf895 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -909,14 +909,12 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) client_config.opt_mask[n >> 3] |= 1 << (n & 7); } while (list_x) { - unsigned n; char *optstr = llist_pop(&list_x); char *colon = strchr(optstr, ':'); if (colon) - *colon = '\0'; - n = udhcp_option_idx(optstr); - if (colon) *colon = ' '; + /* now it looks similar to udhcpd's config file line: + * "optname optval", using the common routine: */ udhcp_str2optset(optstr, &client_config.options); } |