Loading...
net/FreeBSD/inet_network.c Libc-763.13 Libc-1669.40.2
--- Libc/Libc-763.13/net/FreeBSD/inet_network.c
+++ Libc/Libc-1669.40.2/net/FreeBSD/inet_network.c
@@ -27,8 +27,15 @@
  * SUCH DAMAGE.
  */
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wcomma"
+
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char sccsid[] = "@(#)inet_network.c	8.1 (Berkeley) 6/4/93";
+
+/* the algorithms only can deal with ASCII, so we optimize for it */
+#define USE_ASCII
+
 #endif /* LIBC_SCCS and not lint */
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD: src/lib/libc/inet/inet_network.c,v 1.5 2008/01/14 22:55:20 cperciva Exp $");
@@ -48,8 +55,7 @@
  * network numbers.
  */
 in_addr_t
-inet_network(cp)
-	const char *cp;
+inet_network(const char *cp)
 {
 	in_addr_t val, base, n;
 	char c;
@@ -108,4 +114,5 @@
 #undef inet_network
 __weak_reference(__inet_network, inet_network);
 
+#pragma clang diagnostic pop
 /*! \file */