Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2015 20:50:57 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288038 - head/lib/libc/inet
Message-ID:  <201509202050.t8KKovBX095995@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rodrigc
Date: Sun Sep 20 20:50:56 2015
New Revision: 288038
URL: https://svnweb.freebsd.org/changeset/base/288038

Log:
  Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

Modified:
  head/lib/libc/inet/inet_lnaof.c
  head/lib/libc/inet/inet_makeaddr.c
  head/lib/libc/inet/inet_net_ntop.c
  head/lib/libc/inet/inet_neta.c
  head/lib/libc/inet/inet_netof.c
  head/lib/libc/inet/inet_network.c

Modified: head/lib/libc/inet/inet_lnaof.c
==============================================================================
--- head/lib/libc/inet/inet_lnaof.c	Sun Sep 20 20:50:18 2015	(r288037)
+++ head/lib/libc/inet/inet_lnaof.c	Sun Sep 20 20:50:56 2015	(r288038)
@@ -47,8 +47,7 @@ __FBSDID("$FreeBSD$");
  * number formats.
  */
 in_addr_t
-inet_lnaof(in)
-	struct in_addr in;
+inet_lnaof(struct in_addr in)
 {
 	in_addr_t i = ntohl(in.s_addr);
 

Modified: head/lib/libc/inet/inet_makeaddr.c
==============================================================================
--- head/lib/libc/inet/inet_makeaddr.c	Sun Sep 20 20:50:18 2015	(r288037)
+++ head/lib/libc/inet/inet_makeaddr.c	Sun Sep 20 20:50:56 2015	(r288038)
@@ -46,8 +46,7 @@ __FBSDID("$FreeBSD$");
  * building addresses stored in the ifnet structure.
  */
 struct in_addr
-inet_makeaddr(net, host)
-	in_addr_t net, host;
+inet_makeaddr(in_addr_t net, in_addr_t host)
 {
 	struct in_addr a;
 

Modified: head/lib/libc/inet/inet_net_ntop.c
==============================================================================
--- head/lib/libc/inet/inet_net_ntop.c	Sun Sep 20 20:50:18 2015	(r288037)
+++ head/lib/libc/inet/inet_net_ntop.c	Sun Sep 20 20:50:56 2015	(r288038)
@@ -57,12 +57,7 @@ static char *	inet_net_ntop_ipv6(const u
  *	Paul Vixie (ISC), July 1996
  */
 char *
-inet_net_ntop(af, src, bits, dst, size)
-	int af;
-	const void *src;
-	int bits;
-	char *dst;
-	size_t size;
+inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size)
 {
 	switch (af) {
 	case AF_INET:
@@ -89,11 +84,7 @@ inet_net_ntop(af, src, bits, dst, size)
  *	Paul Vixie (ISC), July 1996
  */
 static char *
-inet_net_ntop_ipv4(src, bits, dst, size)
-	const u_char *src;
-	int bits;
-	char *dst;
-	size_t size;
+inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size)
 {
 	char *odst = dst;
 	char *t;

Modified: head/lib/libc/inet/inet_neta.c
==============================================================================
--- head/lib/libc/inet/inet_neta.c	Sun Sep 20 20:50:18 2015	(r288037)
+++ head/lib/libc/inet/inet_neta.c	Sun Sep 20 20:50:56 2015	(r288038)
@@ -52,10 +52,7 @@ __FBSDID("$FreeBSD$");
  *	Paul Vixie (ISC), July 1996
  */
 char *
-inet_neta(src, dst, size)
-	in_addr_t src;
-	char *dst;
-	size_t size;
+inet_neta(in_addr_t src, char *dst, size_t size)
 {
 	char *odst = dst;
 	char *tp;

Modified: head/lib/libc/inet/inet_netof.c
==============================================================================
--- head/lib/libc/inet/inet_netof.c	Sun Sep 20 20:50:18 2015	(r288037)
+++ head/lib/libc/inet/inet_netof.c	Sun Sep 20 20:50:56 2015	(r288038)
@@ -46,8 +46,7 @@ __FBSDID("$FreeBSD$");
  * address; handles class a/b/c network #'s.
  */
 in_addr_t
-inet_netof(in)
-	struct in_addr in;
+inet_netof(struct in_addr in)
 {
 	in_addr_t i = ntohl(in.s_addr);
 

Modified: head/lib/libc/inet/inet_network.c
==============================================================================
--- head/lib/libc/inet/inet_network.c	Sun Sep 20 20:50:18 2015	(r288037)
+++ head/lib/libc/inet/inet_network.c	Sun Sep 20 20:50:56 2015	(r288038)
@@ -48,8 +48,7 @@ __FBSDID("$FreeBSD$");
  * network numbers.
  */
 in_addr_t
-inet_network(cp)
-	const char *cp;
+inet_network(const char *cp)
 {
 	in_addr_t val, base, n;
 	char c;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509202050.t8KKovBX095995>