Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 2010 17:34:30 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r204010 - user/luigi/ipfw3-head/sys/netinet/ipfw
Message-ID:  <201002171734.o1HHYUsw009619@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Wed Feb 17 17:34:30 2010
New Revision: 204010
URL: http://svn.freebsd.org/changeset/base/204010

Log:
  no declarations after code

Modified:
  user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dn_glue.c

Modified: user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dn_glue.c
==============================================================================
--- user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dn_glue.c	Wed Feb 17 17:03:04 2010	(r204009)
+++ user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dn_glue.c	Wed Feb 17 17:34:30 2010	(r204010)
@@ -475,15 +475,15 @@ dn_compat_configure(void *v)
 	int lmax;
 	int error;
 
-	lmax = sizeof(struct dn_id);	/* command header */
-	lmax += sizeof(struct dn_sch) + sizeof(struct dn_link) +
-		sizeof(struct dn_fs) + sizeof(struct dn_profile);
-
 	struct dn_pipe7 *p7 = (struct dn_pipe7 *)v;
 	struct dn_pipe8 *p8 = (struct dn_pipe8 *)v;
 
 	int i; /* number of object to configure */
 
+	lmax = sizeof(struct dn_id);	/* command header */
+	lmax += sizeof(struct dn_sch) + sizeof(struct dn_link) +
+		sizeof(struct dn_fs) + sizeof(struct dn_profile);
+
 	base = buf = malloc(lmax, M_DUMMYNET, M_WAIT|M_ZERO);
 	o_next(&buf, sizeof(struct dn_id), DN_CMD_CONFIG);
 	base->id = DN_API_VERSION;



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