Do not indent switch cases

There's only one way to format switch statements.

http://cm.bell-labs.com/cm/cs/who/dmr/ctut.pdf - page 16
This commit is contained in:
sin 2014-08-15 14:54:03 +01:00 committed by FRIGN
parent 2822488312
commit df8437d4f6

16
quark.c
View file

@ -488,14 +488,14 @@ serve(int fd) {
/* get host */ /* get host */
host[0] = 0; host[0] = 0;
switch(sa.sa_family) { switch(sa.sa_family) {
case AF_INET: case AF_INET:
inet_ntop(AF_INET, &(((struct sockaddr_in *)&sa)->sin_addr), inet_ntop(AF_INET, &(((struct sockaddr_in *)&sa)->sin_addr),
host, sizeof host); host, sizeof host);
break; break;
case AF_INET6: case AF_INET6:
inet_ntop(AF_INET6, &(((struct sockaddr_in6 *)&sa)->sin6_addr), inet_ntop(AF_INET6, &(((struct sockaddr_in6 *)&sa)->sin6_addr),
host, sizeof host); host, sizeof host);
break; break;
} }
result = request(); result = request();