aboutsummaryrefslogtreecommitdiffstats
path: root/nis
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-04-06 00:45:18 +0000
committerRoland McGrath <roland@gnu.org>2005-04-06 00:45:18 +0000
commit80c32b8ecf9ceea47e55fff9ef6f0c8dfd2ca36d (patch)
tree191cc6fd1e686a805dfae897308a82cf1ca857da /nis
parent2005-03-01 H.J. Lu <hongjiu.lu@intel.com> (diff)
downloadglibc-80c32b8ecf9ceea47e55fff9ef6f0c8dfd2ca36d.tar.xz
glibc-80c32b8ecf9ceea47e55fff9ef6f0c8dfd2ca36d.zip
2005-03-23 Jakub Jelinek <jakub@redhat.com>
[BZ #822] * nis/ypclnt.c (yp_2_yperr): Revert 2004-11-30 patch. (ypprot_err): Use yp_2_yperr table also for YP_NODOM .. YP_NOMORE.
Diffstat (limited to 'nis')
-rw-r--r--nis/ypclnt.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/nis/ypclnt.c b/nis/ypclnt.c
index 85292b62d9..6230cb84dc 100644
--- a/nis/ypclnt.c
+++ b/nis/ypclnt.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1996-2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2001, 2002, 2003, 2004, 2005
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@suse.de>, 1996.
@@ -829,6 +830,11 @@ yperr_string (const int error)
static const int8_t yp_2_yperr[] =
{
#define YP2YPERR(yp, yperr) [YP_##yp - YP_VERS] = YPERR_##yperr
+ YP2YPERR (TRUE, SUCCESS),
+ YP2YPERR (NOMORE, NOMORE),
+ YP2YPERR (FALSE, YPERR),
+ YP2YPERR (NOMAP, MAP),
+ YP2YPERR (NODOM, DOMAIN),
YP2YPERR (NOKEY, KEY),
YP2YPERR (BADOP, YPERR),
YP2YPERR (BADDB, BADDB),
@@ -839,7 +845,7 @@ static const int8_t yp_2_yperr[] =
int
ypprot_err (const int code)
{
- if (code < YP_VERS || code > YP_NOKEY)
+ if (code < YP_VERS || code > YP_NOMORE)
return YPERR_YPERR;
return yp_2_yperr[code - YP_VERS];
}