Module Name: src
Committed By: joerg
Date: Mon Jul 4 21:20:27 UTC 2011
Modified Files:
src/common/lib/libc/gen: bswap16.c bswap32.c
Log Message:
ANSIfy
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/gen/bswap16.c \
src/common/lib/libc/gen/bswap32.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/gen/bswap16.c
diff -u src/common/lib/libc/gen/bswap16.c:1.2 src/common/lib/libc/gen/bswap16.c:1.3
--- src/common/lib/libc/gen/bswap16.c:1.2 Sat Feb 16 17:37:13 2008
+++ src/common/lib/libc/gen/bswap16.c Mon Jul 4 21:20:27 2011
@@ -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 <[email protected]>.
@@ -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);
}
Index: src/common/lib/libc/gen/bswap32.c
diff -u src/common/lib/libc/gen/bswap32.c:1.2 src/common/lib/libc/gen/bswap32.c:1.3
--- src/common/lib/libc/gen/bswap32.c:1.2 Sat Feb 16 17:37:13 2008
+++ src/common/lib/libc/gen/bswap32.c Mon Jul 4 21:20:27 2011
@@ -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 <[email protected]>.
@@ -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 ) |