ANSIfy trunk
authorjoerg <joerg@NetBSD.org>
Mon, 04 Jul 2011 21:20:27 +0000
branchtrunk
changeset 202663 d5a7b7ffbc8d
parent 202662 353d35e1753b
child 202664 25e6d5c5e4e7
ANSIfy
common/lib/libc/gen/bswap16.c
common/lib/libc/gen/bswap32.c
common/lib/libc/net/htonl.c
common/lib/libc/net/htons.c
common/lib/libc/net/ntohl.c
common/lib/libc/net/ntohs.c
--- a/common/lib/libc/gen/bswap16.c	Mon Jul 04 20:09:28 2011 +0000
+++ b/common/lib/libc/gen/bswap16.c	Mon Jul 04 21:20:27 2011 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: bswap16.c,v 1.2 2008/02/16 17:37:13 apb Exp $    */
+/*  $NetBSD: bswap16.c,v 1.3 2011/07/04 21:20:27 joerg Exp $    */
 
 /*
  * Written by Manuel Bouyer <bouyer@NetBSD.org>.
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: bswap16.c,v 1.2 2008/02/16 17:37:13 apb Exp $");
+__RCSID("$NetBSD: bswap16.c,v 1.3 2011/07/04 21:20:27 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -16,8 +16,7 @@
 #undef bswap16
 
 uint16_t
-bswap16(x)
-	uint16_t x;
+bswap16(uint16_t x)
 {
 	return ((x << 8) & 0xff00) | ((x >> 8) & 0x00ff);
 }
--- a/common/lib/libc/gen/bswap32.c	Mon Jul 04 20:09:28 2011 +0000
+++ b/common/lib/libc/gen/bswap32.c	Mon Jul 04 21:20:27 2011 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: bswap32.c,v 1.2 2008/02/16 17:37:13 apb Exp $    */
+/*  $NetBSD: bswap32.c,v 1.3 2011/07/04 21:20:27 joerg Exp $    */
 
 /*
  * Written by Manuel Bouyer <bouyer@NetBSD.org>.
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: bswap32.c,v 1.2 2008/02/16 17:37:13 apb Exp $");
+__RCSID("$NetBSD: bswap32.c,v 1.3 2011/07/04 21:20:27 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -16,8 +16,7 @@
 #undef bswap32
 
 uint32_t
-bswap32(x)
-	uint32_t x;
+bswap32(uint32_t x)
 {
 	return	((x << 24) & 0xff000000 ) |
 		((x <<  8) & 0x00ff0000 ) |
--- a/common/lib/libc/net/htonl.c	Mon Jul 04 20:09:28 2011 +0000
+++ b/common/lib/libc/net/htonl.c	Mon Jul 04 21:20:27 2011 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: htonl.c,v 1.1 2005/12/20 19:28:51 christos Exp $	*/
+/*	$NetBSD: htonl.c,v 1.2 2011/07/04 21:29:16 joerg Exp $	*/
 
 /*
  * Written by J.T. Conklin <jtc@NetBSD.org>.
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: htonl.c,v 1.1 2005/12/20 19:28:51 christos Exp $");
+__RCSID("$NetBSD: htonl.c,v 1.2 2011/07/04 21:29:16 joerg Exp $");
 #endif
 
 #include <sys/types.h>
@@ -15,8 +15,7 @@
 #undef htonl
 
 uint32_t 
-htonl(x)
-	uint32_t x;
+htonl(uint32_t x)
 {
 #if BYTE_ORDER == LITTLE_ENDIAN
 	u_char *s = (u_char *)&x;
--- a/common/lib/libc/net/htons.c	Mon Jul 04 20:09:28 2011 +0000
+++ b/common/lib/libc/net/htons.c	Mon Jul 04 21:20:27 2011 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: htons.c,v 1.1 2005/12/20 19:28:51 christos Exp $	*/
+/*	$NetBSD: htons.c,v 1.2 2011/07/04 21:29:16 joerg Exp $	*/
 
 /*
  * Written by J.T. Conklin <jtc@NetBSD.org>.
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: htons.c,v 1.1 2005/12/20 19:28:51 christos Exp $");
+__RCSID("$NetBSD: htons.c,v 1.2 2011/07/04 21:29:16 joerg Exp $");
 #endif
 
 #include <sys/types.h>
@@ -15,8 +15,7 @@
 #undef htons
 
 uint16_t
-htons(x)
-	uint16_t x;
+htons(uint16_t x)
 {
 #if BYTE_ORDER == LITTLE_ENDIAN
 	u_char *s = (u_char *) &x;
--- a/common/lib/libc/net/ntohl.c	Mon Jul 04 20:09:28 2011 +0000
+++ b/common/lib/libc/net/ntohl.c	Mon Jul 04 21:20:27 2011 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: ntohl.c,v 1.1 2005/12/20 19:28:51 christos Exp $	*/
+/*	$NetBSD: ntohl.c,v 1.2 2011/07/04 21:29:16 joerg Exp $	*/
 
 /*
  * Written by J.T. Conklin <jtc@NetBSD.org>.
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: ntohl.c,v 1.1 2005/12/20 19:28:51 christos Exp $");
+__RCSID("$NetBSD: ntohl.c,v 1.2 2011/07/04 21:29:16 joerg Exp $");
 #endif
 
 #include <sys/types.h>
@@ -15,8 +15,7 @@
 #undef ntohl
 
 uint32_t
-ntohl(x)
-	uint32_t x;
+ntohl(uint32_t x)
 {
 #if BYTE_ORDER == LITTLE_ENDIAN
 	u_char *s = (u_char *)&x;
--- a/common/lib/libc/net/ntohs.c	Mon Jul 04 20:09:28 2011 +0000
+++ b/common/lib/libc/net/ntohs.c	Mon Jul 04 21:20:27 2011 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: ntohs.c,v 1.1 2005/12/20 19:28:51 christos Exp $	*/
+/*	$NetBSD: ntohs.c,v 1.2 2011/07/04 21:29:16 joerg Exp $	*/
 
 /*
  * Written by J.T. Conklin <jtc@NetBSD.org>.
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: ntohs.c,v 1.1 2005/12/20 19:28:51 christos Exp $");
+__RCSID("$NetBSD: ntohs.c,v 1.2 2011/07/04 21:29:16 joerg Exp $");
 #endif
 
 #include <sys/types.h>
@@ -15,8 +15,7 @@
 #undef ntohs
 
 uint16_t
-ntohs(x)
-	uint16_t x;
+ntohs(uint16_t x)
 {
 #if BYTE_ORDER == LITTLE_ENDIAN
 	u_char *s = (u_char *) &x;