[hackers] [sdhcp] [PATCH 02/12] Brace style in switch statements

From: Michael Forney <mforney_AT_mforney.org>
Date: Wed, 14 Nov 2018 18:40:31 -0800

---
 sdhcp.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sdhcp.c b/sdhcp.c
index a8f72ea..4b777b8 100644
--- a/sdhcp.c
+++ b/sdhcp.c
_AT_@ -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:
_AT_@ -356,7 +356,7 @@ Init:
 	alarm(1);
 	goto Selecting;
 Selecting:
-	switch(dhcprecv()) {
+	switch (dhcprecv()) {
 	case DHCPoffer:
 		alarm(0);
 		memcpy(client, bp.yiaddr, sizeof(client));
_AT_@ -374,7 +374,7 @@ Selecting:
 		goto Selecting;
 	}
 Requesting:
-	switch(dhcprecv()) {
+	switch (dhcprecv()) {
 	case DHCPoffer:
 		goto Requesting; /* ignore other offers. */
 	case DHCPack:
_AT_@ -398,7 +398,7 @@ Bound:
 		goto Renewing;
 	}
 Renewing:
-	switch(dhcprecv()) {
+	switch (dhcprecv()) {
 	case DHCPack:
 		acceptlease();
 		goto Bound;
_AT_@ -409,7 +409,7 @@ Renewing:
 		goto Rebinding;
 	}
 Rebinding:
-	switch(dhcprecv()) {
+	switch (dhcprecv()) {
 	case DHCPnak: /* lease expired */
 		goto Init;
 	case DHCPack:
-- 
2.19.1
Received on Thu Nov 15 2018 - 03:40:31 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 15 2018 - 03:48:23 CET