]> sourceware.org Git - glibc.git/commitdiff
(yp_2_yperr): Revert 2004-11-30 patch. (ypprot_err): Use yp_2_yperr table also for...
authorUlrich Drepper <drepper@redhat.com>
Thu, 24 Mar 2005 00:16:58 +0000 (00:16 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 24 Mar 2005 00:16:58 +0000 (00:16 +0000)
nis/ypclnt.c

index 85292b62d9acf853c9b15cf1d81267c9b3687bfa..6230cb84dcbb9aaf3fe776af3241657598387ddf 100644 (file)
@@ -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];
 }
This page took 0.044845 seconds and 5 git commands to generate.