OSDN Git Service

* net.cc (cygwin_getprotobyname): Don't try to be fancy with return values.
authorcgf <cgf>
Fri, 18 Mar 2005 22:42:50 +0000 (22:42 +0000)
committercgf <cgf>
Fri, 18 Mar 2005 22:42:50 +0000 (22:42 +0000)
(cygwin_getprotobynumber): Ditto.

winsup/cygwin/ChangeLog
winsup/cygwin/net.cc

index 4768c04..09a5101 100644 (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
index 6714cd1..4645528 100644 (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