Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2012 12:45:14 +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: r238988 - head/sys/netinet/ipfw
Message-ID:  <201208021245.q72CjErR082642@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Thu Aug  2 12:45:13 2012
New Revision: 238988
URL: http://svn.freebsd.org/changeset/base/238988

Log:
  replace __unused with a portable construct;
  fix a couple of signed/unsigned warnings.

Modified:
  head/sys/netinet/ipfw/ip_dummynet.c

Modified: head/sys/netinet/ipfw/ip_dummynet.c
==============================================================================
--- head/sys/netinet/ipfw/ip_dummynet.c	Thu Aug  2 12:17:52 2012	(r238987)
+++ head/sys/netinet/ipfw/ip_dummynet.c	Thu Aug  2 12:45:13 2012	(r238988)
@@ -77,9 +77,10 @@ static struct task	dn_task;
 static struct taskqueue	*dn_tq = NULL;
 
 static void
-dummynet(void * __unused unused)
+dummynet(void *arg)
 {
 
+	(void)arg;	/* UNUSED */
 	taskqueue_enqueue(dn_tq, &dn_task);
 }
 
@@ -1286,7 +1287,7 @@ config_fs(struct dn_fs *nfs, struct dn_i
         }
 	if (nfs->flags & DN_HAVE_MASK) {
 		/* make sure we have some buckets */
-		ipdn_bound_var(&nfs->buckets, dn_cfg.hash_size,
+		ipdn_bound_var((int *)&nfs->buckets, dn_cfg.hash_size,
 			1, dn_cfg.max_hash_size, "flowset buckets");
 	} else {
 		nfs->buckets = 1;	/* we only need 1 */
@@ -1371,7 +1372,7 @@ config_sched(struct dn_sch *_nsch, struc
 		return EINVAL;
 	/* make sure we have some buckets */
 	if (a.sch->flags & DN_HAVE_MASK)
-		ipdn_bound_var(&a.sch->buckets, dn_cfg.hash_size,
+		ipdn_bound_var((int *)&a.sch->buckets, dn_cfg.hash_size,
 			1, dn_cfg.max_hash_size, "sched buckets");
 	/* XXX other sanity checks */
 	bzero(&p, sizeof(p));



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