summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2010-04-09 16:06:53 +0000
committerluigi <luigi@FreeBSD.org>2010-04-09 16:06:53 +0000
commit0881f9be0f33de4e6c00206183686038e610ca86 (patch)
tree5d71712275bf560a0a0f4d83c599cc8f3cad89c7
parentb5eb021e182e9c7dc5f335c74b06385b24f88ce4 (diff)
downloadFreeBSD-src-0881f9be0f33de4e6c00206183686038e610ca86.zip
FreeBSD-src-0881f9be0f33de4e6c00206183686038e610ca86.tar.gz
no need to pass an argument to dn_compat_calc_size()
MFC after: 3 days
-rw-r--r--sys/netinet/ipfw/ip_dn_glue.c2
-rw-r--r--sys/netinet/ipfw/ip_dn_private.h2
-rw-r--r--sys/netinet/ipfw/ip_dummynet.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ipfw/ip_dn_glue.c b/sys/netinet/ipfw/ip_dn_glue.c
index c0df1fc..a31ec1f 100644
--- a/sys/netinet/ipfw/ip_dn_glue.c
+++ b/sys/netinet/ipfw/ip_dn_glue.c
@@ -553,7 +553,7 @@ dn_compat_configure(void *v)
}
int
-dn_compat_calc_size(struct dn_parms dn_cfg)
+dn_compat_calc_size(void)
{
int need = 0;
/* XXX use FreeBSD 8 struct size */
diff --git a/sys/netinet/ipfw/ip_dn_private.h b/sys/netinet/ipfw/ip_dn_private.h
index 270f188..87ebeaa 100644
--- a/sys/netinet/ipfw/ip_dn_private.h
+++ b/sys/netinet/ipfw/ip_dn_private.h
@@ -392,7 +392,7 @@ int dn_c_copy_fs(struct dn_fsk *f, struct copy_args *a, int nq);
int dn_compat_copy_queue(struct copy_args *a, void *_o);
int dn_compat_copy_pipe(struct copy_args *a, void *_o);
int copy_data_helper_compat(void *_o, void *_arg);
-int dn_compat_calc_size(struct dn_parms dn_cfg);
+int dn_compat_calc_size(void);
int do_config(void *p, int l);
/* function to drain idle object */
diff --git a/sys/netinet/ipfw/ip_dummynet.c b/sys/netinet/ipfw/ip_dummynet.c
index d7073eb..08cddbe 100644
--- a/sys/netinet/ipfw/ip_dummynet.c
+++ b/sys/netinet/ipfw/ip_dummynet.c
@@ -1769,7 +1769,7 @@ compute_space(struct dn_id *cmd, struct copy_args *a)
x = DN_C_FS | DN_C_QUEUE;
break;
case DN_GET_COMPAT: /* compatibility mode */
- need = dn_compat_calc_size(dn_cfg);
+ need = dn_compat_calc_size();
break;
}
a->flags = x;
OpenPOWER on IntegriCloud