Module Name:    src
Committed By:   joerg
Date:           Mon Jul  4 21:29:16 UTC 2011

Modified Files:
        src/common/lib/libc/net: htonl.c htons.c ntohl.c ntohs.c

Log Message:
ANSIfy


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/net/htonl.c \
    src/common/lib/libc/net/htons.c src/common/lib/libc/net/ntohl.c \
    src/common/lib/libc/net/ntohs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libc/net/htonl.c
diff -u src/common/lib/libc/net/htonl.c:1.1 src/common/lib/libc/net/htonl.c:1.2
--- src/common/lib/libc/net/htonl.c:1.1	Tue Dec 20 19:28:51 2005
+++ src/common/lib/libc/net/htonl.c	Mon Jul  4 21:29:16 2011
@@ -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 <[email protected]>.
@@ -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;
Index: src/common/lib/libc/net/htons.c
diff -u src/common/lib/libc/net/htons.c:1.1 src/common/lib/libc/net/htons.c:1.2
--- src/common/lib/libc/net/htons.c:1.1	Tue Dec 20 19:28:51 2005
+++ src/common/lib/libc/net/htons.c	Mon Jul  4 21:29:16 2011
@@ -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 <[email protected]>.
@@ -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;
Index: src/common/lib/libc/net/ntohl.c
diff -u src/common/lib/libc/net/ntohl.c:1.1 src/common/lib/libc/net/ntohl.c:1.2
--- src/common/lib/libc/net/ntohl.c:1.1	Tue Dec 20 19:28:51 2005
+++ src/common/lib/libc/net/ntohl.c	Mon Jul  4 21:29:16 2011
@@ -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 <[email protected]>.
@@ -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;
Index: src/common/lib/libc/net/ntohs.c
diff -u src/common/lib/libc/net/ntohs.c:1.1 src/common/lib/libc/net/ntohs.c:1.2
--- src/common/lib/libc/net/ntohs.c:1.1	Tue Dec 20 19:28:51 2005
+++ src/common/lib/libc/net/ntohs.c	Mon Jul  4 21:29:16 2011
@@ -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 <[email protected]>.
@@ -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;

Reply via email to