← Commit list

9c0ea86ca

Denys Vlasenko
Denys Vlasenko
2010-04-04
FAILED Duration: 34s

Subject

udhcpc: trivial shrink

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/udhcp/dhcpc.c+2 -4
@@ -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);
}