From owner-svn-src-head@freebsd.org Sun Sep 20 20:50:58 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C70A3A06F44; Sun, 20 Sep 2015 20:50:58 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B8465156A; Sun, 20 Sep 2015 20:50:58 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8KKowu0096002; Sun, 20 Sep 2015 20:50:58 GMT (envelope-from rodrigc@FreeBSD.org) Received: (from rodrigc@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8KKovBX095995; Sun, 20 Sep 2015 20:50:57 GMT (envelope-from rodrigc@FreeBSD.org) Message-Id: <201509202050.t8KKovBX095995@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rodrigc set sender to rodrigc@FreeBSD.org using -f From: Craig Rodrigues Date: Sun, 20 Sep 2015 20:50:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288038 - head/lib/libc/inet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2015 20:50:59 -0000 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;