summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-19 00:53:05 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:28 +0200
commit429b087a846bfaa95212b441375bbec49f244273 (patch)
tree52056f95c52d1f562ac9552ac4247ac4eb49f38a /libc/inet
parent934f2fc45e37745bf53db383d0ea11dc3ad4c152 (diff)
getaddrinfo.c: replace #if SALEN with #if 0
make it clear, that the code is disabled Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/getaddrinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c
index 3b2973ef7..b61d69c0e 100644
--- a/libc/inet/getaddrinfo.c
+++ b/libc/inet/getaddrinfo.c
@@ -281,7 +281,7 @@ gaih_local(const char *name, const struct gaih_service *service,
ai->ai_protocol = req->ai_protocol;
ai->ai_addrlen = sizeof(struct sockaddr_un);
ai->ai_addr = (void *)ai + sizeof(struct addrinfo);
-#if SALEN
+#if 0 /* SALEN */
((struct sockaddr_un *)ai->ai_addr)->sun_len = sizeof(struct sockaddr_un);
#endif /* SALEN */
@@ -711,7 +711,7 @@ gaih_inet(const char *name, const struct gaih_service *service,
(*pai)->ai_protocol = st2->protocol;
(*pai)->ai_addrlen = socklen;
(*pai)->ai_addr = (void *) (*pai) + sizeof(struct addrinfo);
-#if defined SALEN
+#if 0 /* SALEN */
(*pai)->ai_addr->sa_len = socklen;
#endif
(*pai)->ai_addr->sa_family = family;