aboutsummaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-12-09 16:41:02 +0000
committerUlrich Drepper <drepper@redhat.com>2000-12-09 16:41:02 +0000
commit1d5c2feb1c7dbefca171fb4bae4949b3acdf1ef5 (patch)
treed7d63ce6545ed1fa018f959507bc8c18f7ce48a3 /nss
parenta9a569606ba9321899559fdaff25d4048a1ed154 (diff)
downloadglibc-1d5c2feb1c7dbefca171fb4bae4949b3acdf1ef5.zip
glibc-1d5c2feb1c7dbefca171fb4bae4949b3acdf1ef5.tar.gz
glibc-1d5c2feb1c7dbefca171fb4bae4949b3acdf1ef5.tar.bz2
Update.
2000-12-09 Ulrich Drepper <drepper@redhat.com> * Makeconfig (default_cflags): Make -O2 the default for stable releases. 2000-12-08 H.J. Lu <hjl@gnu.org> * 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.
Diffstat (limited to 'nss')
-rw-r--r--nss/getnssent.c10
1 files changed, 2 insertions, 8 deletions
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;
}