about summary refs log tree commit diff
path: root/nss/getXXbyYY_r.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-13 05:19:10 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-13 05:19:10 +0000
commite6d329961fa06384125a7c14ccc3066885f5be96 (patch)
treec3a108f11e51ceaa477be3f2818dbc5a42ebb2f9 /nss/getXXbyYY_r.c
parentb54aa55d36ab28db6d505bf34626a9ac4b639495 (diff)
downloadglibc-e6d329961fa06384125a7c14ccc3066885f5be96.tar.gz
glibc-e6d329961fa06384125a7c14ccc3066885f5be96.tar.xz
glibc-e6d329961fa06384125a7c14ccc3066885f5be96.zip
Update.
2003-06-12  Ulrich Drepper  <drepper@redhat.com>

	* wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
Diffstat (limited to 'nss/getXXbyYY_r.c')
-rw-r--r--nss/getXXbyYY_r.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c
index 3f873a5fde..06f2abedd0 100644
--- a/nss/getXXbyYY_r.c
+++ b/nss/getXXbyYY_r.c
@@ -248,13 +248,12 @@ done:
   POSTPROCESS;
 #endif
   return (status == NSS_STATUS_SUCCESS ? 0
-	  : (status != NSS_STATUS_TRYAGAIN
 #ifdef NEED_H_ERRNO
-	     /* These functions only set errno if h_errno is
-		NETDB_INTERNAL.  */
-	     && *h_errnop == NETDB_INTERNAL
+	  /* These functions only set errno if h_errno is NETDB_INTERNAL.  */
+	  : status == NSS_STATUS_TRYAGAIN && *h_errnop != NETDB_INTERNAL
+	  ? EAGAIN
 #endif
-	     ? errno : EAGAIN));
+	  : errno);
 }