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

	* nis/ypclnt.c (ypprot_err): Fix "minor optimizations".
This commit is contained in:
Ulrich Drepper 2004-11-12 19:06:21 +00:00
parent 7db612081a
commit a45e13bd3e
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View 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)