summaryrefslogtreecommitdiffstats
path: root/lib/nss_wrapper/nss_wrapper.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-06-21 10:47:28 +0200
committerMichael Adam <obnox@samba.org>2014-06-21 12:42:10 +0200
commit9a936f96983d39868c9e337bcdfae945ffcc3f72 (patch)
tree961612acb3f77f65fa140e487e5d66682b53cccf /lib/nss_wrapper/nss_wrapper.c
parentcef718c39f1bfbe72bee65db0fb1f680f887fbf0 (diff)
downloadsamba-9a936f96983d39868c9e337bcdfae945ffcc3f72.tar.gz
samba-9a936f96983d39868c9e337bcdfae945ffcc3f72.tar.xz
samba-9a936f96983d39868c9e337bcdfae945ffcc3f72.zip
nss_wrapper: Align indentation with the rest of Samba
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib/nss_wrapper/nss_wrapper.c')
-rw-r--r--lib/nss_wrapper/nss_wrapper.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c
index 7c5a413ee7..d7949c3140 100644
--- a/lib/nss_wrapper/nss_wrapper.c
+++ b/lib/nss_wrapper/nss_wrapper.c
@@ -4046,24 +4046,24 @@ static int nwrap_getnameinfo(const struct sockaddr *sa, socklen_t salen,
type = sa->sa_family;
switch (type) {
- case AF_INET:
- if (salen < sizeof(struct sockaddr_in))
- return EAI_FAMILY;
- addr = &((struct sockaddr_in *)sa)->sin_addr;
- addrlen = sizeof(((struct sockaddr_in *)sa)->sin_addr);
- port = ntohs(((struct sockaddr_in *)sa)->sin_port);
- break;
+ case AF_INET:
+ if (salen < sizeof(struct sockaddr_in))
+ return EAI_FAMILY;
+ addr = &((struct sockaddr_in *)sa)->sin_addr;
+ addrlen = sizeof(((struct sockaddr_in *)sa)->sin_addr);
+ port = ntohs(((struct sockaddr_in *)sa)->sin_port);
+ break;
#ifdef HAVE_IPV6
- case AF_INET6:
- if (salen < sizeof(struct sockaddr_in6))
- return EAI_FAMILY;
- addr = &((struct sockaddr_in6 *)sa)->sin6_addr;
- addrlen = sizeof(((struct sockaddr_in6 *)sa)->sin6_addr);
- port = ntohs(((struct sockaddr_in6 *)sa)->sin6_port);
- break;
-#endif
- default:
+ case AF_INET6:
+ if (salen < sizeof(struct sockaddr_in6))
return EAI_FAMILY;
+ addr = &((struct sockaddr_in6 *)sa)->sin6_addr;
+ addrlen = sizeof(((struct sockaddr_in6 *)sa)->sin6_addr);
+ port = ntohs(((struct sockaddr_in6 *)sa)->sin6_port);
+ break;
+#endif
+ default:
+ return EAI_FAMILY;
}
if (host != NULL) {