From e2496982472bdf233be95c5ea72d1c4dc6c91db3 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Sun, 23 Apr 2023 13:43:47 +0000 Subject: This commit was manufactured by cvs2git to create tag 'tb_20230422'. --- src/lib/libc/net/ntohs.c | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/lib/libc/net/ntohs.c (limited to 'src/lib/libc/net/ntohs.c') diff --git a/src/lib/libc/net/ntohs.c b/src/lib/libc/net/ntohs.c deleted file mode 100644 index b5ea361f83..0000000000 --- a/src/lib/libc/net/ntohs.c +++ /dev/null @@ -1,21 +0,0 @@ -/* $OpenBSD: ntohs.c,v 1.9 2014/07/21 01:51:10 guenther Exp $ */ -/* - * Written by J.T. Conklin . - * Public domain. - */ - -#include -#include - -#undef ntohs - -u_int16_t -ntohs(u_int16_t x) -{ -#if BYTE_ORDER == LITTLE_ENDIAN - u_char *s = (u_char *) &x; - return (u_int16_t)(s[0] << 8 | s[1]); -#else - return x; -#endif -} -- cgit v1.2.3-55-g6feb