diff options
author | 2007-11-25 18:25:25 +0000 | |
---|---|---|
committer | 2007-11-25 18:25:25 +0000 | |
commit | 4d6af78a85c54abcce707f76977611c77d8dfe20 (patch) | |
tree | 04014b8faba6f61654418ba7ebb480ab63fc1ea7 /sys/lib/libkern/ntohl.c | |
parent | typo; ok jmc@, deanna@ (diff) | |
download | wireguard-openbsd-4d6af78a85c54abcce707f76977611c77d8dfe20.tar.xz wireguard-openbsd-4d6af78a85c54abcce707f76977611c77d8dfe20.zip |
libkern, begone. Move to a new mechanism where config(8)'s "file"
directive can select between MI and MD versions of these files. At
the same time, adjust the boot programs to pick exactly what they need,
instead of the 7 or 8 mechanisms previously used.
There will be some fallout from this, but testing it all by myself is a
ridiculously slow process; it will be finished in-tree.
Various developers were very nice and avoided making fun of me when I
was gibbering in the corner..
Diffstat (limited to 'sys/lib/libkern/ntohl.c')
-rw-r--r-- | sys/lib/libkern/ntohl.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sys/lib/libkern/ntohl.c b/sys/lib/libkern/ntohl.c deleted file mode 100644 index 08176301eea..00000000000 --- a/sys/lib/libkern/ntohl.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Written by J.T. Conklin <jtc@netbsd.org>. - * Public domain. - */ - -#if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: ntohl.c,v 1.5 2004/11/28 07:23:41 mickey Exp $"; -#endif /* LIBC_SCCS and not lint */ - -#include <sys/types.h> -#include <machine/endian.h> - -#undef ntohl - -u_int32_t -ntohl(x) - u_int32_t x; -{ -#if BYTE_ORDER == LITTLE_ENDIAN - u_char *s = (u_char *)&x; - return (u_int32_t)(s[0] << 24 | s[1] << 16 | s[2] << 8 | s[3]); -#else - return x; -#endif -} |