summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-29 16:05:19 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-29 16:05:19 +0000
commit0abae2113b7acec76d54b84c7edd90ba13c34a0a (patch)
tree6d4e6f3e700574832d379130aec397c48e0c0cdf /libc
parente73d437344a0fb9d30c8e7cef62c65c4c71ae128 (diff)
sync comment with glibc and dont include sys/socket.h since we dont use socket()
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/rpc/pm_getmaps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/inet/rpc/pm_getmaps.c b/libc/inet/rpc/pm_getmaps.c
index 3f8617ca2..bd740a0ae 100644
--- a/libc/inet/rpc/pm_getmaps.c
+++ b/libc/inet/rpc/pm_getmaps.c
@@ -42,7 +42,6 @@ static char sccsid[] = "@(#)pmap_getmaps.c 1.10 87/08/11 Copyr 1984 Sun Micro";
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
-#include <sys/socket.h>
#include <netdb.h>
#include <stdbool.h>
#include <stdio.h>
@@ -70,6 +69,8 @@ pmap_getmaps (struct sockaddr_in *address)
minutetimeout.tv_sec = 60;
minutetimeout.tv_usec = 0;
address->sin_port = htons (PMAPPORT);
+
+ /* Don't need a reserved port to get ports from the portmapper. */
client = clnttcp_create (address, PMAPPROG,
PMAPVERS, &socket, 50, 500);
if (client != (CLIENT *) NULL)