aboutsummaryrefslogtreecommitdiff
path: root/sys/netpfil
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2016-01-26 22:45:05 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2016-01-26 22:45:05 +0000
commit4d85bfeb07eb0d6bc40b66a66dc5a60febf96fe2 (patch)
treecc5cb66244e33025850be6ddea4b56afcf3765a6 /sys/netpfil
parentc9a48e1dde1b3a06a90155df7f087c0618f39363 (diff)
downloadsrc-4d85bfeb07eb0d6bc40b66a66dc5a60febf96fe2.tar.gz
src-4d85bfeb07eb0d6bc40b66a66dc5a60febf96fe2.zip
avoid warnings for signed/unsigned comparison and unused arguments
Notes
Notes: svn path=/head/; revision=294855
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 42431b00a72c..b533d6d7982d 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;
}