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 11uint16_t 12htons(uint16_t x) 13{ 14 return htobe16(x); 15} 16