git: a5e380e51cdb - main - netinet: Update a comment for in_localip()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Feb 2025 10:15:11 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=a5e380e51cdba64a392846a4eeda000f948f42ce
commit a5e380e51cdba64a392846a4eeda000f948f42ce
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-02-24 10:14:39 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-02-24 10:14:39 +0000
netinet: Update a comment for in_localip()
The function in_localip() was changed to return bool but the comment was
left unchanged.
Fixes: c8ee75f2315e Use network epoch to protect local IPv4 addresses hash
MFC after: 3 days
---
sys/netinet/in.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 7196eabc123e..4c0908937ddc 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -147,7 +147,7 @@ in_localaddr(struct in_addr in)
}
/*
- * Return 1 if an internet address is for the local host and configured
+ * Return true if an internet address is for the local host and configured
* on one of its interfaces.
*/
bool