Brace style in switch statements - sdhcp - simple dhcp client
 (HTM) git clone git://git.codemadness.org/sdhcp
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 4871e8efcfcd14dd626d44067eb14fc0ef3ee880
 (DIR) parent 88edf2a3924b19d804b5783540fb272bc8a52c8f
 (HTM) Author: Michael Forney <mforney@mforney.org>
       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(-)
       ---
 (DIR) 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: