about summary refs log tree commit diff
path: root/nis/ypclnt.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-03-09 09:55:51 +0000
committerUlrich Drepper <drepper@redhat.com>1999-03-09 09:55:51 +0000
commit66f72f0327ccf02f5700c218dd846a2b1937ef3c (patch)
tree781c29211a63806fe31efa859fc670e614db6284 /nis/ypclnt.c
parentee336c200a375198ccc6bec53904fc39d326130e (diff)
downloadglibc-66f72f0327ccf02f5700c218dd846a2b1937ef3c.tar.gz
glibc-66f72f0327ccf02f5700c218dd846a2b1937ef3c.tar.xz
glibc-66f72f0327ccf02f5700c218dd846a2b1937ef3c.zip
Try only twice to connect to NIS server.
Diffstat (limited to 'nis/ypclnt.c')
-rw-r--r--nis/ypclnt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nis/ypclnt.c b/nis/ypclnt.c
index ef0f385a1e..cfda29a668 100644
--- a/nis/ypclnt.c
+++ b/nis/ypclnt.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1996.
 
@@ -47,7 +47,7 @@ typedef struct dom_binding dom_binding;
 
 static struct timeval RPCTIMEOUT = {25, 0};
 static struct timeval UDPTIMEOUT = {5, 0};
-static int const MAXTRIES = 5;
+static int const MAXTRIES = 2;
 static char __ypdomainname[NIS_MAXNAMELEN + 1] = "\0";
 __libc_lock_define_initialized (static, ypbindlist_lock)
 static dom_binding *__ypbindlist = NULL;
@@ -285,7 +285,7 @@ do_ypcall (const char *domain, u_long prog, xdrproc_t xargs,
 	      free (ydb);
 	      ydb = NULL;
 	    }
-	  status = YPERR_RPC;;
+	  status = YPERR_RPC;
 	}
       else
 	status = YPERR_SUCCESS;