From b7d19cc400f14ccd64a1fedebe14022fe115029a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 30 May 2010 23:41:23 +0200 Subject: dhcp: readability cleanups and small code shrink function old new delta udhcp_run_script 654 617 -37 Signed-off-by: Denys Vlasenko --- networking/udhcp/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networking/udhcp/common.c') 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) } } -/* 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; -- cgit v1.2.3