]> err.no Git - linux-2.6/blobdiff - net/ipv4/netfilter/ipt_hashlimit.c
[NETFILTER]: x_tables: remove some unnecessary casts
[linux-2.6] / net / ipv4 / netfilter / ipt_hashlimit.c
index ba5e23505e88dded2d1b84786b93b1ea3da97dc2..b88adc7f4b4702305012db2cd8c5189f5c782a19 100644 (file)
@@ -561,7 +561,7 @@ static void
 hashlimit_destroy(const struct xt_match *match, void *matchinfo,
                  unsigned int matchsize)
 {
-       struct ipt_hashlimit_info *r = (struct ipt_hashlimit_info *) matchinfo;
+       struct ipt_hashlimit_info *r = matchinfo;
 
        htable_put(r->hinfo);
 }
@@ -719,15 +719,15 @@ cleanup_nothing:
        
 }
 
-static int __init init(void)
+static int __init ipt_hashlimit_init(void)
 {
        return init_or_fini(0);
 }
 
-static void __exit fini(void)
+static void __exit ipt_hashlimit_fini(void)
 {
        init_or_fini(1);
 }
 
-module_init(init);
-module_exit(fini);
+module_init(ipt_hashlimit_init);
+module_exit(ipt_hashlimit_fini);