summaryrefslogtreecommitdiffstats
path: root/sys/netpfil
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2016-01-26 22:45:05 +0000
committerluigi <luigi@FreeBSD.org>2016-01-26 22:45:05 +0000
commitc2c3ad006ac12e752c7e8691b95ffaedaf325ac1 (patch)
treecc5cb66244e33025850be6ddea4b56afcf3765a6 /sys/netpfil
parent9d75f130a36668f0047128ee0c2f2d7bde39f09c (diff)
downloadFreeBSD-src-c2c3ad006ac12e752c7e8691b95ffaedaf325ac1.zip
FreeBSD-src-c2c3ad006ac12e752c7e8691b95ffaedaf325ac1.tar.gz
avoid warnings for signed/unsigned comparison and unused arguments
Diffstat (limited to 'sys/netpfil')
-rw-r--r--sys/netpfil/ipfw/dn_heap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netpfil/ipfw/dn_heap.c b/sys/netpfil/ipfw/dn_heap.c
index 42431b0..b533d6d 100644
--- a/sys/netpfil/ipfw/dn_heap.c
+++ b/sys/netpfil/ipfw/dn_heap.c
@@ -81,7 +81,7 @@ heap_resize(struct dn_heap *h, unsigned int new_size)
{
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, int ofs,
static int
do_del(void *obj, void *arg)
{
+ (void)obj;
+ (void)arg;
return DNHT_SCAN_DEL;
}
OpenPOWER on IntegriCloud