git: 77e0c9c3414c - main - inpcb: in in_pcbbind() use bool for anonport

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Fri, 13 Mar 2026 20:30:15 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=77e0c9c3414cbe30eb7f376bf9c8531ca0f097ff

commit 77e0c9c3414cbe30eb7f376bf9c8531ca0f097ff
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-03-05 20:47:51 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-03-13 20:29:50 +0000

    inpcb: in in_pcbbind() use bool for anonport
---
 sys/netinet/in_pcb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 96c8d3c73b0e..e375f0edcc7e 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -715,7 +715,8 @@ int
 in_pcbbind(struct inpcb *inp, struct sockaddr_in *sin, int flags,
     struct ucred *cred)
 {
-	int anonport, error;
+	int error;
+	bool anonport;
 
 	KASSERT(sin == NULL || sin->sin_family == AF_INET,
 	    ("%s: invalid address family for %p", __func__, sin));