From 0881f9be0f33de4e6c00206183686038e610ca86 Mon Sep 17 00:00:00 2001 From: luigi Date: Fri, 9 Apr 2010 16:06:53 +0000 Subject: [PATCH] no need to pass an argument to dn_compat_calc_size() MFC after: 3 days --- sys/netinet/ipfw/ip_dn_glue.c | 2 +- sys/netinet/ipfw/ip_dn_private.h | 2 +- sys/netinet/ipfw/ip_dummynet.c | 2 +- 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 c0df1fc04be0..a31ec1f71b81 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 270f18813268..87ebeaa86dab 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 d7073eb797ee..08cddbe1b479 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;