diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-04-21 16:15:11 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-04-21 16:15:11 +0000 |
commit | a711dd4ba8f2c71a260a3f7539c0e86175f97a21 (patch) | |
tree | 1bf9e3eb9a49f3b9cdcd0dee9515339486170f74 /iconv/iconv_close.c | |
parent | 761df3a7aa6eb65aa66c78e6c1da627e453de458 (diff) | |
download | glibc-a711dd4ba8f2c71a260a3f7539c0e86175f97a21.tar.gz glibc-a711dd4ba8f2c71a260a3f7539c0e86175f97a21.tar.xz glibc-a711dd4ba8f2c71a260a3f7539c0e86175f97a21.zip |
Update.
2000-04-21 Ulrich Drepper <drepper@redhat.com> * iconv/iconv.c (iconv): Add __builtin_expect where useful. * iconv/iconv_close.c (iconv_close): Likewise. * iconv/iconv_open.c (iconv_open): Likewise. * grp/putgrent.c (putgrent): Unlock steam if fprintf failed. Add __builtin_expect where useful. * grp/initgroups.c (initgroups): Test for result of memory allocation and punt if it fails. * dirent/scandir.c (scandir): Add __builtin_expect where useful. * grp/fgetgrent.c (fgetfrent): Likewise. * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
Diffstat (limited to 'iconv/iconv_close.c')
-rw-r--r-- | iconv/iconv_close.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iconv/iconv_close.c b/iconv/iconv_close.c index 6f81aa2595..c999e44dac 100644 --- a/iconv/iconv_close.c +++ b/iconv/iconv_close.c @@ -1,5 +1,5 @@ /* Release any resource associated with given conversion descriptor. - Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -27,7 +27,7 @@ int iconv_close (iconv_t cd) { - if (cd == (iconv_t *) -1L) + if (__builtin_expect (cd == (iconv_t *) -1L, 0)) { __set_errno (EBADF); return -1; |