| delorie.com/archives/browse.cgi | search | 
| X-Spam-Check-By: | sourceware.org | 
| Date: | Thu, 6 Jul 2006 18:59:44 -0700 | 
| From: | clayne AT anodized DOT com | 
| To: | cygwin AT cygwin DOT com | 
| Subject: | change in 20060704 snap | 
| Message-ID: | <20060707015943.GA7409@ns1.anodized.com> | 
| Mime-Version: | 1.0 | 
| User-Agent: | Mutt/1.5.11 | 
| X-Assp-Spam-Prob: | 0.00000 | 
| X-Assp-Whitelisted: | Yes | 
| X-Assp-Envelope-From: | clayne AT ns1 DOT anodized DOT com | 
| X-IsSubscribed: | yes | 
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm | 
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> | 
| List-Archive: | <http://sourceware.org/ml/cygwin/> | 
| List-Post: | <mailto:cygwin AT cygwin DOT com> | 
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> | 
| Sender: | cygwin-owner AT cygwin DOT com | 
| Mail-Followup-To: | cygwin AT cygwin DOT com | 
| Delivered-To: | mailing list cygwin AT cygwin DOT com | 
-/* undocumented in wsock32.dll */
-extern "C" unsigned int WINAPI inet_network (const char *);
-
 extern "C" unsigned int
 cygwin_inet_network (const char *cp)
@@ -157,7 +152,5 @@ cygwin_inet_network (const char *cp)
   if (efault.faulted (EFAULT))
     return INADDR_NONE;
-  unsigned int res = inet_network (cp);
-
-  return res;
+  return ntohl (inet_addr (cp));
 }
Won't this be returning a full host address rather than a network address
now?
If need be, I could contribute by writing cygwin-native versions of
inet_pton, inet_ntop, inet_aton, inet_ntoa, etc. rather than calling the
windows variants. inet_addr on it's own is already pretty bitrotted at
this point as well.
-cl
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |