mirror of git://sourceware.org/git/glibc.git
Update.
1998-09-29 Ulrich Drepper <drepper@cygnus.com> * nis/ypclnt.c: Remove not needed close calls.
This commit is contained in:
parent
6ff5bc6837
commit
87052ab727
|
|
@ -1,3 +1,7 @@
|
||||||
|
1998-09-29 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* nis/ypclnt.c: Remove not needed close calls.
|
||||||
|
|
||||||
1998-09-28 23:55 Ulrich Drepper <drepper@cygnus.com>
|
1998-09-28 23:55 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* nis/ypclnt.c (__yp_bind): Pretty print. Optimize readv result
|
* nis/ypclnt.c (__yp_bind): Pretty print. Optimize readv result
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ __yp_bind (const char *domain, dom_binding **ypdb)
|
||||||
{
|
{
|
||||||
char path[sizeof (BINDINGDIR) - 1 + strlen (domain) + 10];
|
char path[sizeof (BINDINGDIR) - 1 + strlen (domain) + 10];
|
||||||
struct iovec vec[2];
|
struct iovec vec[2];
|
||||||
u_short port;
|
unsigned short port;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
sprintf (path, "%s/%s.%ld", BINDINGDIR, domain, YPBINDVERS);
|
sprintf (path, "%s/%s.%ld", BINDINGDIR, domain, YPBINDVERS);
|
||||||
|
|
@ -138,8 +138,7 @@ __yp_bind (const char *domain, dom_binding **ypdb)
|
||||||
{
|
{
|
||||||
if (ysd->dom_client)
|
if (ysd->dom_client)
|
||||||
{
|
{
|
||||||
clnt_destroy(ysd->dom_client);
|
clnt_destroy (ysd->dom_client);
|
||||||
close (ysd->dom_socket);
|
|
||||||
ysd->dom_client = NULL;
|
ysd->dom_client = NULL;
|
||||||
ysd->dom_socket = -1;
|
ysd->dom_socket = -1;
|
||||||
}
|
}
|
||||||
|
|
@ -163,7 +162,6 @@ __yp_bind (const char *domain, dom_binding **ypdb)
|
||||||
if (ntohs (clnt_saddr.sin_port) >= IPPORT_RESERVED)
|
if (ntohs (clnt_saddr.sin_port) >= IPPORT_RESERVED)
|
||||||
{
|
{
|
||||||
clnt_destroy (client);
|
clnt_destroy (client);
|
||||||
close (clnt_sock);
|
|
||||||
if (is_new)
|
if (is_new)
|
||||||
free (ysd);
|
free (ysd);
|
||||||
return YPERR_YPBIND;
|
return YPERR_YPBIND;
|
||||||
|
|
@ -175,14 +173,12 @@ __yp_bind (const char *domain, dom_binding **ypdb)
|
||||||
(caddr_t) &ypbr, RPCTIMEOUT) != RPC_SUCCESS)
|
(caddr_t) &ypbr, RPCTIMEOUT) != RPC_SUCCESS)
|
||||||
{
|
{
|
||||||
clnt_destroy (client);
|
clnt_destroy (client);
|
||||||
close (clnt_sock);
|
|
||||||
if (is_new)
|
if (is_new)
|
||||||
free (ysd);
|
free (ysd);
|
||||||
return YPERR_YPBIND;
|
return YPERR_YPBIND;
|
||||||
}
|
}
|
||||||
|
|
||||||
clnt_destroy (client);
|
clnt_destroy (client);
|
||||||
close (clnt_sock);
|
|
||||||
|
|
||||||
if (ypbr.ypbind_status != YPBIND_SUCC_VAL)
|
if (ypbr.ypbind_status != YPBIND_SUCC_VAL)
|
||||||
{
|
{
|
||||||
|
|
@ -714,7 +710,6 @@ yp_all (const char *indomain, const char *inmap,
|
||||||
res = YPERR_SUCCESS;
|
res = YPERR_SUCCESS;
|
||||||
|
|
||||||
clnt_destroy (clnt);
|
clnt_destroy (clnt);
|
||||||
close (clnt_sock);
|
|
||||||
|
|
||||||
if (status != YP_NOMORE)
|
if (status != YP_NOMORE)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue