1/* $OpenBSD: ntohs.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 ntohs 10 11uint16_t 12ntohs(uint16_t x) 13{ 14 return be16toh(x); 15} 16