Luigi,

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

Are there any benefits of this syntax comparing to __unused macro
that expands to proper attribute? The latter syntax is used in
FreeBSD more often.

-- 
Totus tuus, Glebius.
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to