diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-30 23:41:23 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-30 23:41:23 +0200 |
commit | b7d19cc400f14ccd64a1fedebe14022fe115029a (patch) | |
tree | cd4a50e2694628413a2460d3e1d2a706462d0e2b /networking/udhcp/common.c | |
parent | c88c1a01904b5791dfd1ca5342c805a9f392e17f (diff) | |
download | busybox-w32-b7d19cc400f14ccd64a1fedebe14022fe115029a.tar.gz busybox-w32-b7d19cc400f14ccd64a1fedebe14022fe115029a.tar.bz2 busybox-w32-b7d19cc400f14ccd64a1fedebe14022fe115029a.zip |
dhcp: readability cleanups and small code shrink
function old new delta
udhcp_run_script 654 617 -37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index 7cda34a18..90a07ed09 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -176,7 +176,7 @@ unsigned FAST_FUNC udhcp_option_idx(const char *name) | |||
176 | } | 176 | } |
177 | } | 177 | } |
178 | 178 | ||
179 | /* get an option with bounds checking (warning, result is not aligned). */ | 179 | /* Get an option with bounds checking (warning, result is not aligned) */ |
180 | uint8_t* FAST_FUNC udhcp_get_option(struct dhcp_packet *packet, int code) | 180 | uint8_t* FAST_FUNC udhcp_get_option(struct dhcp_packet *packet, int code) |
181 | { | 181 | { |
182 | uint8_t *optionptr; | 182 | uint8_t *optionptr; |
@@ -240,7 +240,7 @@ uint8_t* FAST_FUNC udhcp_get_option(struct dhcp_packet *packet, int code) | |||
240 | return NULL; | 240 | return NULL; |
241 | } | 241 | } |
242 | 242 | ||
243 | /* return the position of the 'end' option (no bounds checking) */ | 243 | /* Return the position of the 'end' option (no bounds checking) */ |
244 | int FAST_FUNC udhcp_end_option(uint8_t *optionptr) | 244 | int FAST_FUNC udhcp_end_option(uint8_t *optionptr) |
245 | { | 245 | { |
246 | int i = 0; | 246 | int i = 0; |