Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2016 22:45:05 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r294855 - head/sys/netpfil/ipfw
Message-ID:  <201601262245.u0QMj5Pi095914@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Tue Jan 26 22:45:05 2016
New Revision: 294855
URL: https://svnweb.freebsd.org/changeset/base/294855

Log:
  avoid warnings for signed/unsigned comparison and unused arguments

Modified:
  head/sys/netpfil/ipfw/dn_heap.c

Modified: head/sys/netpfil/ipfw/dn_heap.c
==============================================================================
--- head/sys/netpfil/ipfw/dn_heap.c	Tue Jan 26 22:32:58 2016	(r294854)
+++ head/sys/netpfil/ipfw/dn_heap.c	Tue Jan 26 22:45:05 2016	(r294855)
@@ -81,7 +81,7 @@ heap_resize(struct dn_heap *h, unsigned 
 {
 	struct dn_heap_entry *p;
 
-	if (h->size >= new_size )	/* have enough room */
+	if ((unsigned int)h->size >= new_size )	/* have enough room */
 		return 0;
 #if 1  /* round to the next power of 2 */
 	new_size |= new_size >> 1;
@@ -419,6 +419,8 @@ dn_ht_init(struct dn_ht *ht, int buckets
 static int
 do_del(void *obj, void *arg)
 {
+	(void)obj;
+	(void)arg;
 	return DNHT_SCAN_DEL;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601262245.u0QMj5Pi095914>