* net.cc (cygwin_getprotobyname): Don't try to be fancy with return values.

(cygwin_getprotobynumber): Ditto.
This commit is contained in:
Christopher Faylor 2005-03-18 22:42:51 +00:00
parent bb8dc8c4cb
commit cfaf367058
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-03-18 Christopher Faylor <cgf@timesys.com>
* net.cc (cygwin_getprotobyname): Don't try to be fancy with return
values.
(cygwin_getprotobynumber): Ditto.
2005-03-17 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::utimes): Handle opening

View File

@ -538,14 +538,14 @@ cygwin_getprotobyname (const char *p)
{
if (check_null_str_errno (p))
return NULL;
__builtin_return (dup_ent (protoent_buf, getprotobyname (p), t_protoent));
return (protoent *) dup_ent (protoent_buf, getprotobyname (p), t_protoent);
}
/* exported as getprotobynumber: standards? */
extern "C" struct protoent *
cygwin_getprotobynumber (int number)
{
__builtin_return (dup_ent (protoent_buf, getprotobynumber (number), t_protoent));
return (protoent *) dup_ent (protoent_buf, getprotobynumber (number), t_protoent);
}
bool