aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-03-09 17:27:24 -0500
committerJan Engelhardt <jengelh@medozas.de>2010-03-18 09:20:06 -0400
commit7d5f7ed802507999c22949b84686d03987fe57ec (patch)
tree2318dbfb05f02c258a05a8616a16cbfec10f65ab
parente8a96f69383f3d88cdc06d8ccd450f70c48628a3 (diff)
netfilter: xtables: do without explicit XT_ALIGN
XT_ALIGN is already applied on matchsize/targetsize in x_tables.c, so it is not strictly needed in the extensions. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r--net/netfilter/xt_CT.c2
-rw-r--r--net/netfilter/xt_LED.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_CT.c b/net/netfilter/xt_CT.c
index fda603edb31a..6509e03f1e62 100644
--- a/net/netfilter/xt_CT.c
+++ b/net/netfilter/xt_CT.c
@@ -137,7 +137,7 @@ static void xt_ct_tg_destroy(const struct xt_tgdtor_param *par)
137static struct xt_target xt_ct_tg __read_mostly = { 137static struct xt_target xt_ct_tg __read_mostly = {
138 .name = "CT", 138 .name = "CT",
139 .family = NFPROTO_UNSPEC, 139 .family = NFPROTO_UNSPEC,
140 .targetsize = XT_ALIGN(sizeof(struct xt_ct_target_info)), 140 .targetsize = sizeof(struct xt_ct_target_info),
141 .checkentry = xt_ct_tg_check, 141 .checkentry = xt_ct_tg_check,
142 .destroy = xt_ct_tg_destroy, 142 .destroy = xt_ct_tg_destroy,
143 .target = xt_ct_target, 143 .target = xt_ct_target,
diff --git a/net/netfilter/xt_LED.c b/net/netfilter/xt_LED.c
index 8ff7843bb921..f86dc52367b1 100644
--- a/net/netfilter/xt_LED.c
+++ b/net/netfilter/xt_LED.c
@@ -141,7 +141,7 @@ static struct xt_target led_tg_reg __read_mostly = {
141 .revision = 0, 141 .revision = 0,
142 .family = NFPROTO_UNSPEC, 142 .family = NFPROTO_UNSPEC,
143 .target = led_tg, 143 .target = led_tg,
144 .targetsize = XT_ALIGN(sizeof(struct xt_led_info)), 144 .targetsize = sizeof(struct xt_led_info),
145 .checkentry = led_tg_check, 145 .checkentry = led_tg_check,
146 .destroy = led_tg_destroy, 146 .destroy = led_tg_destroy,
147 .me = THIS_MODULE, 147 .me = THIS_MODULE,