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;
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"