This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Remove unused elements from yp_2_yperr


ypprot_err never references anything beyond YP_NOKEY from yp_2_yperr, so
these elements can be removed.

Andreas.

2004-11-30  Andreas Schwab  <schwab@suse.de>

	* nis/ypclnt.c (ypprot_err): Remove unused entries.

Index: nis/ypclnt.c
===================================================================
RCS file: /cvs/glibc/libc/nis/ypclnt.c,v
retrieving revision 1.49
diff -u -p -a -u -p -a -r1.49 nis/ypclnt.c
--- nis/ypclnt.c	12 Nov 2004 19:05:10 -0000	1.49
+++ nis/ypclnt.c	30 Nov 2004 15:00:03 -0000
@@ -829,11 +829,6 @@ 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),

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]