aboutsummaryrefslogtreecommitdiff
path: root/nis
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-09-29 10:36:20 +0000
committerUlrich Drepper <drepper@redhat.com>1998-09-29 10:36:20 +0000
commit87052ab7278a7848b758103a0f91b55830903497 (patch)
tree9d8b6f08f8255218a9a6b70758195ea0b9b364a3 /nis
parent6ff5bc683740fb47bf573c670db71d1796f008ad (diff)
downloadglibc-87052ab7278a7848b758103a0f91b55830903497.zip
glibc-87052ab7278a7848b758103a0f91b55830903497.tar.gz
glibc-87052ab7278a7848b758103a0f91b55830903497.tar.bz2
Update.
1998-09-29 Ulrich Drepper <drepper@cygnus.com> * nis/ypclnt.c: Remove not needed close calls.
Diffstat (limited to 'nis')
-rw-r--r--nis/ypclnt.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/nis/ypclnt.c b/nis/ypclnt.c
index aa81655..dff92d7 100644
--- a/nis/ypclnt.c
+++ b/nis/ypclnt.c
@@ -103,7 +103,7 @@ __yp_bind (const char *domain, dom_binding **ypdb)
{
char path[sizeof (BINDINGDIR) - 1 + strlen (domain) + 10];
struct iovec vec[2];
- u_short port;
+ unsigned short port;
int fd;
sprintf (path, "%s/%s.%ld", BINDINGDIR, domain, YPBINDVERS);
@@ -138,8 +138,7 @@ __yp_bind (const char *domain, dom_binding **ypdb)
{
if (ysd->dom_client)
{
- clnt_destroy(ysd->dom_client);
- close (ysd->dom_socket);
+ clnt_destroy (ysd->dom_client);
ysd->dom_client = NULL;
ysd->dom_socket = -1;
}
@@ -163,7 +162,6 @@ __yp_bind (const char *domain, dom_binding **ypdb)
if (ntohs (clnt_saddr.sin_port) >= IPPORT_RESERVED)
{
clnt_destroy (client);
- close (clnt_sock);
if (is_new)
free (ysd);
return YPERR_YPBIND;
@@ -175,14 +173,12 @@ __yp_bind (const char *domain, dom_binding **ypdb)
(caddr_t) &ypbr, RPCTIMEOUT) != RPC_SUCCESS)
{
clnt_destroy (client);
- close (clnt_sock);
if (is_new)
free (ysd);
return YPERR_YPBIND;
}
clnt_destroy (client);
- close (clnt_sock);
if (ypbr.ypbind_status != YPBIND_SUCC_VAL)
{
@@ -714,7 +710,6 @@ yp_all (const char *indomain, const char *inmap,
res = YPERR_SUCCESS;
clnt_destroy (clnt);
- close (clnt_sock);
if (status != YP_NOMORE)
{