diff options
Diffstat (limited to 'src/lib/libc/net/htons.c')
-rw-r--r-- | src/lib/libc/net/htons.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/libc/net/htons.c b/src/lib/libc/net/htons.c deleted file mode 100644 index 28b13cef98..0000000000 --- a/src/lib/libc/net/htons.c +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | /* $OpenBSD: htons.c,v 1.10 2024/04/15 14:30:48 naddy Exp $ */ | ||
2 | /* | ||
3 | * Public domain. | ||
4 | */ | ||
5 | |||
6 | #include <sys/types.h> | ||
7 | #include <endian.h> | ||
8 | |||
9 | #undef htons | ||
10 | |||
11 | uint16_t | ||
12 | htons(uint16_t x) | ||
13 | { | ||
14 | return htobe16(x); | ||
15 | } | ||