diff options
author | Denys Vlasenko | 2010-05-30 23:41:23 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-05-30 23:41:23 +0200 |
commit | b7d19cc400f14ccd64a1fedebe14022fe115029a (patch) | |
tree | cd4a50e2694628413a2460d3e1d2a706462d0e2b /networking/udhcp/common.c | |
parent | c88c1a01904b5791dfd1ca5342c805a9f392e17f (diff) | |
download | busybox-b7d19cc400f14ccd64a1fedebe14022fe115029a.zip busybox-b7d19cc400f14ccd64a1fedebe14022fe115029a.tar.gz |
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 7cda34a..90a07ed 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c @@ -176,7 +176,7 @@ unsigned FAST_FUNC udhcp_option_idx(const char *name) } } -/* get an option with bounds checking (warning, result is not aligned). */ +/* Get an option with bounds checking (warning, result is not aligned) */ uint8_t* FAST_FUNC udhcp_get_option(struct dhcp_packet *packet, int code) { uint8_t *optionptr; @@ -240,7 +240,7 @@ uint8_t* FAST_FUNC udhcp_get_option(struct dhcp_packet *packet, int code) return NULL; } -/* return the position of the 'end' option (no bounds checking) */ +/* Return the position of the 'end' option (no bounds checking) */ int FAST_FUNC udhcp_end_option(uint8_t *optionptr) { int i = 0; |