Browse Source

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>
Peter S. Mazinger 14 years ago
parent
commit
429b087a84
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/inet/getaddrinfo.c

+ 2 - 2
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;