From 1d5c2feb1c7dbefca171fb4bae4949b3acdf1ef5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 9 Dec 2000 16:41:02 +0000 Subject: Update. 2000-12-09 Ulrich Drepper * Makeconfig (default_cflags): Make -O2 the default for stable releases. 2000-12-08 H.J. Lu * sysdeps/ia64/fpu/s_isinfl.S: Renamed to ... * sysdeps/ia64/fpu/s_isinf.S: This. Add a .pred.rel.mutex note to avoid false report. * sysdeps/ia64/fpu/s_isnanl.S: Renamed to ... * sysdeps/ia64/fpu/s_isnan.S: This. * sysdeps/ia64/fpu/s_fpclassify.S: New file. * sysdeps/ia64/fpu/s_fpclassifyf.S: New file. * sysdeps/ia64/fpu/s_fpclassifyl.S: New file. * sysdeps/ia64/fpu/s_isinff.S: New file. * sysdeps/ia64/fpu/s_isinfl.S: New file. * sysdeps/ia64/fpu/s_isnanf.S: New file. * sysdeps/ia64/fpu/s_isnanl.S: New file. * sysdeps/ia64/fpu/s_finite.S: New file. * sysdeps/ia64/fpu/s_finitef.S: New file. * sysdeps/ia64/fpu/s_finitel.S: New file. * sysdeps/ia64/fpu/s_signbit.S: New file. * sysdeps/ia64/fpu/s_signbitf.S: New file. * sysdeps/ia64/fpu/s_signbitl.S: New file. * sysdeps/ia64/fpu/s_copysign.S: New file. * sysdeps/ia64/fpu/s_copysignf.S: New file. * sysdeps/ia64/fpu/s_copysignl.S: New file. --- nss/getnssent.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'nss') diff --git a/nss/getnssent.c b/nss/getnssent.c index 1180e3c..ea6cfc0 100644 --- a/nss/getnssent.c +++ b/nss/getnssent.c @@ -26,7 +26,6 @@ __nss_getent (getent_r_function func, void **resbuf, char **buffer, size_t buflen, size_t *buffer_size, int *h_errnop) { void *result; - int save; if (*buffer == NULL) { @@ -35,8 +34,7 @@ __nss_getent (getent_r_function func, void **resbuf, char **buffer, } while (buffer != NULL - && func (resbuf, *buffer, *buffer_size, &result, - h_errnop) == ERANGE + && func (resbuf, *buffer, *buffer_size, &result, h_errnop) == ERANGE && (h_errnop == NULL || *h_errnop == NETDB_INTERNAL)) { char *new_buf; @@ -46,7 +44,7 @@ __nss_getent (getent_r_function func, void **resbuf, char **buffer, { /* We are out of memory. Free the current buffer so that the process gets a chance for a normal termination. */ - save = errno; + int save = errno; free (*buffer); __set_errno (save); } @@ -56,9 +54,5 @@ __nss_getent (getent_r_function func, void **resbuf, char **buffer, if (*buffer == NULL) result = NULL; - /* Release lock. Preserve error value. */ - save = errno; - __set_errno (save); - return result; } -- cgit v1.1