summaryrefslogtreecommitdiffstats
path: root/dhcp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-10-06 12:49:07 +0000
committerRoy Marples <roy@marples.name>2008-10-06 12:49:07 +0000
commit2db75f1366ddbf270e27e82f865e1b972b72bde2 (patch)
tree75f54f416df1fa4885429069e44444dc2cc61dfb /dhcp.c
parent35a8183fb9d41cd62d1b1689ffe9953fff677aa9 (diff)
downloaddhcpcd-2db75f1366ddbf270e27e82f865e1b972b72bde2.tar.xz
Style.
Diffstat (limited to 'dhcp.c')
-rw-r--r--dhcp.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/dhcp.c b/dhcp.c
index d10476f8..9c267000 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -912,13 +912,10 @@ make_message(struct dhcp_message **message,
if (!(opt->type & REQUEST ||
has_option_mask(ifo->requestmask, opt->option)))
continue;
- switch (opt->option) {
- case DHO_RENEWALTIME: /* FALLTHROUGH */
- case DHO_REBINDTIME:
- if (type == DHCP_INFORM)
- continue;
- break;
- }
+ if (type == DHCP_INFORM &&
+ (opt->option == DHO_RENEWALTIME ||
+ opt->option == DHO_REBINDTIME))
+ continue;
*p++ = opt->option;
}
*n_params = p - n_params - 1;