Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 12 Nov 2004 19:06:21 +0000 (19:06 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 12 Nov 2004 19:06:21 +0000 (19:06 +0000)
2004-11-12  Andreas Schwab  <schwab@suse.de>

* nis/ypclnt.c (ypprot_err): Fix "minor optimizations".

ChangeLog
nis/ypclnt.c

index d883905..bb3598d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-11-12  Andreas Schwab  <schwab@suse.de>
+
+       * nis/ypclnt.c (ypprot_err): Fix "minor optimizations".
+
 2004-11-12  Ulrich Drepper  <drepper@redhat.com>
 
        * posix/Makefile (tests): Add bug-regex24.
index 65b9c55..5ad78ed 100644 (file)
@@ -846,7 +846,7 @@ ypprot_err (const int code)
 {
   if (code < YP_VERS || code > YP_NOKEY)
     return YPERR_YPERR;
-  return yp_2_yperr[code];
+  return yp_2_yperr[code - YP_VERS];
 }
 libnsl_hidden_def (ypprot_err)