From cfaf367058257bdeb2fb93250684335b00f5854f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 18 Mar 2005 22:42:51 +0000 Subject: * net.cc (cygwin_getprotobyname): Don't try to be fancy with return values. (cygwin_getprotobynumber): Ditto. --- winsup/cygwin/net.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/net.cc') diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 6714cd1fb..46455285d 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -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 -- cgit v1.2.3