git: b77bee7642ae - stable/13 - Appease -Wsign-compare in radix.c

Alexander V. Chernikov melifaro at FreeBSD.org
Thu Apr 29 09:17:16 UTC 2021


The branch stable/13 has been updated by melifaro:

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

commit b77bee7642aec3fb52b13893f5f8b21f5d93ef12
Author:     Alexander V. Chernikov <melifaro at FreeBSD.org>
AuthorDate: 2021-04-10 13:48:25 +0000
Commit:     Alexander V. Chernikov <melifaro at FreeBSD.org>
CommitDate: 2021-04-29 08:47:31 +0000

    Appease -Wsign-compare in radix.c
    
    Differential Revision:  https://reviews.freebsd.org/D29661
    Submitted by:   zec
    MFC after       2 weeks
    
    (cherry picked from commit 63dceebe68569c3a7ebd07d0a6123264da625149)
---
 sys/net/radix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/radix.c b/sys/net/radix.c
index 1f58318e52ae..931bf6db871b 100644
--- a/sys/net/radix.c
+++ b/sys/net/radix.c
@@ -428,7 +428,7 @@ rn_insert(void *v_arg, struct radix_head *head, int *dupentry,
 	int head_off = top->rn_offset, vlen = LEN(v);
 	struct radix_node *t = rn_search(v_arg, top);
 	caddr_t cp = v + head_off;
-	int b;
+	unsigned b;
 	struct radix_node *p, *tt, *x;
     	/*
 	 * Find first bit at which v and t->rn_key differ


More information about the dev-commits-src-all mailing list