diff options
| author | Roy Marples <roy@marples.name> | 2008-10-06 12:49:07 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-10-06 12:49:07 +0000 |
| commit | 2db75f1366ddbf270e27e82f865e1b972b72bde2 (patch) | |
| tree | 75f54f416df1fa4885429069e44444dc2cc61dfb /dhcp.c | |
| parent | 35a8183fb9d41cd62d1b1689ffe9953fff677aa9 (diff) | |
| download | dhcpcd-2db75f1366ddbf270e27e82f865e1b972b72bde2.tar.xz | |
Style.
Diffstat (limited to 'dhcp.c')
| -rw-r--r-- | dhcp.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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; |
