git: f510c5b2135b - main - netinet: fix build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Feb 2025 16:10:31 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=f510c5b2135b7ec1dad8329413b83766646cc7e0
commit f510c5b2135b7ec1dad8329413b83766646cc7e0
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-02-24 16:08:54 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-02-24 16:08:54 +0000
netinet: fix build
Fixes: 3b281d1421a78b588c5fc4182009ce62d8823d95
---
sys/netinet/in.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index fa710af7cd58..e42422341ada 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -689,8 +689,8 @@ void in_ifdetach(struct ifnet *);
static inline bool
in_broadcast(struct in_addr in)
{
- return (in.s_addr == htonl(INADDR_BROADCAST) ||
- in.s_addr == htonl(INADDR_ANY));
+ return (in.s_addr == __htonl(INADDR_BROADCAST) ||
+ in.s_addr == __htonl(INADDR_ANY));
}
#define in_hosteq(s, t) ((s).s_addr == (t).s_addr)