mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-06 14:30:38 +08:00
* net.cc (cygwin_getprotobyname): Don't try to be fancy with return values.
(cygwin_getprotobynumber): Ditto.
This commit is contained in:
parent
bb8dc8c4cb
commit
cfaf367058
@ -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>
|
2005-03-17 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_disk_file.cc (fhandler_disk_file::utimes): Handle opening
|
* fhandler_disk_file.cc (fhandler_disk_file::utimes): Handle opening
|
||||||
|
@ -538,14 +538,14 @@ cygwin_getprotobyname (const char *p)
|
|||||||
{
|
{
|
||||||
if (check_null_str_errno (p))
|
if (check_null_str_errno (p))
|
||||||
return NULL;
|
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? */
|
/* exported as getprotobynumber: standards? */
|
||||||
extern "C" struct protoent *
|
extern "C" struct protoent *
|
||||||
cygwin_getprotobynumber (int number)
|
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
|
bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user