aboutsummaryrefslogtreecommitdiff
path: root/src/network/ntohs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/ntohs.c')
-rw-r--r--src/network/ntohs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/ntohs.c b/src/network/ntohs.c
index 745cef42..85cbf2ea 100644
--- a/src/network/ntohs.c
+++ b/src/network/ntohs.c
@@ -6,3 +6,11 @@ uint16_t ntohs(uint16_t n)
union { int i; char c; } u = { 1 };
return u.c ? bswap_16(n) : n;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif