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>
This commit is contained in:
Denys Vlasenko
2010-05-30 23:41:23 +02:00
parent c88c1a0190
commit b7d19cc400
4 changed files with 53 additions and 48 deletions

View File

@ -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;