This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]