Introduction
Introduction Statistics Contact Development Disclaimer Help
Brace style in switch statements - sdhcp - simple dhcp client
git clone git://git.codemadness.org/sdhcp
Log
Files
Refs
LICENSE
---
commit 4871e8efcfcd14dd626d44067eb14fc0ef3ee880
parent 88edf2a3924b19d804b5783540fb272bc8a52c8f
Author: Michael Forney <[email protected]>
Date: Wed, 14 Nov 2018 18:40:31 -0800
Brace style in switch statements
Diffstat:
M sdhcp.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/sdhcp.c b/sdhcp.c
@@ -277,7 +277,7 @@ dhcpsend(int type, int how)
p = hnoptput(p, ODtype, type, 1);
p = optput(p, ODclientid, cid, sizeof(cid));
- switch(type) {
+ switch (type) {
case DHCPdiscover:
break;
case DHCPrequest:
@@ -356,7 +356,7 @@ Init:
alarm(1);
goto Selecting;
Selecting:
- switch(dhcprecv()) {
+ switch (dhcprecv()) {
case DHCPoffer:
alarm(0);
memcpy(client, bp.yiaddr, sizeof(client));
@@ -374,7 +374,7 @@ Selecting:
goto Selecting;
}
Requesting:
- switch(dhcprecv()) {
+ switch (dhcprecv()) {
case DHCPoffer:
goto Requesting; /* ignore other offers. */
case DHCPack:
@@ -398,7 +398,7 @@ Bound:
goto Renewing;
}
Renewing:
- switch(dhcprecv()) {
+ switch (dhcprecv()) {
case DHCPack:
acceptlease();
goto Bound;
@@ -409,7 +409,7 @@ Renewing:
goto Rebinding;
}
Rebinding:
- switch(dhcprecv()) {
+ switch (dhcprecv()) {
case DHCPnak: /* lease expired */
goto Init;
case DHCPack:
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.