Module Name: src Committed By: martin Date: Sat Mar 17 20:57:35 UTC 2012
Modified Files: src/common/lib/libc/gen: bswap16.c Log Message: Mark linted To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/common/lib/libc/gen/bswap16.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.3 src/common/lib/libc/gen/bswap16.c:1.4 --- src/common/lib/libc/gen/bswap16.c:1.3 Mon Jul 4 21:20:27 2011 +++ src/common/lib/libc/gen/bswap16.c Sat Mar 17 20:57:35 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: bswap16.c,v 1.3 2011/07/04 21:20:27 joerg Exp $ */ +/* $NetBSD: bswap16.c,v 1.4 2012/03/17 20:57:35 martin Exp $ */ /* * Written by Manuel Bouyer <bou...@netbsd.org>. @@ -7,7 +7,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: bswap16.c,v 1.3 2011/07/04 21:20:27 joerg Exp $"); +__RCSID("$NetBSD: bswap16.c,v 1.4 2012/03/17 20:57:35 martin Exp $"); #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -18,5 +18,6 @@ __RCSID("$NetBSD: bswap16.c,v 1.3 2011/0 uint16_t bswap16(uint16_t x) { + /*LINTED*/ return ((x << 8) & 0xff00) | ((x >> 8) & 0x00ff); }