From 6f82d0e8f9756938f04071892206a5af85e676f0 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Fri, 13 Jul 2012 17:49:56 +0000 Subject: This commit was manufactured by cvs2git to create tag 'eric_g2k12'. --- src/lib/libc/net/ntohl.c | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/lib/libc/net/ntohl.c (limited to 'src/lib/libc/net/ntohl.c') diff --git a/src/lib/libc/net/ntohl.c b/src/lib/libc/net/ntohl.c deleted file mode 100644 index 36414b7a13..0000000000 --- a/src/lib/libc/net/ntohl.c +++ /dev/null @@ -1,21 +0,0 @@ -/* $OpenBSD: ntohl.c,v 1.6 2005/08/06 20:30:03 espie Exp $ */ -/* - * Written by J.T. Conklin . - * Public domain. - */ - -#include -#include - -#undef ntohl - -u_int32_t -ntohl(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 -} -- cgit v1.2.3-55-g6feb