This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
getXXbyYY_r.c revision 1.46 double return?
- From: Glen Nakamura <glen at imodulo dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 11 Sep 2002 19:12:16 -1000
- Subject: getXXbyYY_r.c revision 1.46 double return?
Roland,
Did you really intend to leave the old return statement in your change
to nss/getXXbyYY_r.c? It seems that the second return statement
would never be used?
- glen
#ifdef POSTPROCESS
POSTPROCESS;
#endif
return (status == NSS_STATUS_SUCCESS <<< DELETE?
? 0 : (status == NSS_STATUS_TRYAGAIN ? errno : ENOENT)); <<< DELETE?
return (status == NSS_STATUS_SUCCESS ? 0
: status != NSS_STATUS_TRYAGAIN ? ENOENT
#ifdef NEED_H_ERRNO
/* These functions only set errno if h_errno is NETDB_INTERNAL. */
: *h_errnop != NETDB_INTERNAL ? EAGAIN
#endif
: errno);
}