Commit 1d67a516 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

ipconfig: Reduce switch/case indent

Make the case labels the same indent as the switch.

git diff -w shows miscellaneous 80 column wrapping.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 075e1913
...@@ -861,41 +861,44 @@ static void __init ic_do_bootp_ext(u8 *ext) ...@@ -861,41 +861,44 @@ static void __init ic_do_bootp_ext(u8 *ext)
#endif #endif
switch (*ext++) { switch (*ext++) {
case 1: /* Subnet mask */ case 1: /* Subnet mask */
if (ic_netmask == NONE) if (ic_netmask == NONE)
memcpy(&ic_netmask, ext+1, 4); memcpy(&ic_netmask, ext+1, 4);
break; break;
case 3: /* Default gateway */ case 3: /* Default gateway */
if (ic_gateway == NONE) if (ic_gateway == NONE)
memcpy(&ic_gateway, ext+1, 4); memcpy(&ic_gateway, ext+1, 4);
break; break;
case 6: /* DNS server */ case 6: /* DNS server */
servers= *ext/4; servers= *ext/4;
if (servers > CONF_NAMESERVERS_MAX) if (servers > CONF_NAMESERVERS_MAX)
servers = CONF_NAMESERVERS_MAX; servers = CONF_NAMESERVERS_MAX;
for (i = 0; i < servers; i++) { for (i = 0; i < servers; i++) {
if (ic_nameservers[i] == NONE) if (ic_nameservers[i] == NONE)
memcpy(&ic_nameservers[i], ext+1+4*i, 4); memcpy(&ic_nameservers[i], ext+1+4*i, 4);
} }
break; break;
case 12: /* Host name */ case 12: /* Host name */
ic_bootp_string(utsname()->nodename, ext+1, *ext, __NEW_UTS_LEN); ic_bootp_string(utsname()->nodename, ext+1, *ext,
ic_host_name_set = 1; __NEW_UTS_LEN);
break; ic_host_name_set = 1;
case 15: /* Domain name (DNS) */ break;
ic_bootp_string(ic_domain, ext+1, *ext, sizeof(ic_domain)); case 15: /* Domain name (DNS) */
break; ic_bootp_string(ic_domain, ext+1, *ext, sizeof(ic_domain));
case 17: /* Root path */ break;
if (!root_server_path[0]) case 17: /* Root path */
ic_bootp_string(root_server_path, ext+1, *ext, sizeof(root_server_path)); if (!root_server_path[0])
break; ic_bootp_string(root_server_path, ext+1, *ext,
case 26: /* Interface MTU */ sizeof(root_server_path));
memcpy(&mtu, ext+1, sizeof(mtu)); break;
ic_dev_mtu = ntohs(mtu); case 26: /* Interface MTU */
break; memcpy(&mtu, ext+1, sizeof(mtu));
case 40: /* NIS Domain name (_not_ DNS) */ ic_dev_mtu = ntohs(mtu);
ic_bootp_string(utsname()->domainname, ext+1, *ext, __NEW_UTS_LEN); break;
break; case 40: /* NIS Domain name (_not_ DNS) */
ic_bootp_string(utsname()->domainname, ext+1, *ext,
__NEW_UTS_LEN);
break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment