(getnameinfo): Remove spurious `#if INET6'.
authordrepper <drepper>
Mon, 6 Oct 1997 00:06:34 +0000 (00:06 +0000)
committerdrepper <drepper>
Mon, 6 Oct 1997 00:06:34 +0000 (00:06 +0000)
Mark nrl_domainname as internal function.

inet/getnameinfo.c

index 2bba606..a7cdb07 100644 (file)
@@ -63,6 +63,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
 static char *
+internal_function
 nrl_domainname (void)
 {
   static char *domain = NULL;
@@ -258,13 +259,11 @@ getnameinfo (const struct sockaddr *sa, size_t addrlen, char *host,
        else
          {
            const char *c;
-#if INET6
            if (sa->sa_family == AF_INET6)
              c = inet_ntop (AF_INET6,
                             (void *) &(((struct sockaddr_in6 *) sa)->sin6_addr),
                             host, hostlen);
            else
-#endif /* INET6 */
              c = inet_ntop (AF_INET,
                             (void *) &(((struct sockaddr_in *) sa)->sin_addr),
                             host, hostlen);