getXXbyYY_r.c revision 1.46 double return?

Glen Nakamura glen@imodulo.com
Wed Sep 11 22:12:00 GMT 2002


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);
}



More information about the Libc-alpha mailing list