chiark / gitweb /
cleanup: remove redundant "init_module" declarations
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Jun 2011 10:18:21 +0000 (11:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2011 15:34:21 +0000 (16:34 +0100)
These declarations are now provided in secnet.h and should not appear
in individual .c files.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
13 files changed:
dh.c
log.c
md5.c
netlink.c
resolver.c
rsa.c
sha1.c
site.c
slip.c
transform.c
tun.c
udp.c
util.c

diff --git a/dh.c b/dh.c
index 2ee93fb..91d08ce 100644 (file)
--- a/dh.c
+++ b/dh.c
@@ -118,7 +118,6 @@ static list_t *dh_apply(closure_t *self, struct cloc loc, dict_t *context,
     return new_closure(&st->cl);
 }
 
-init_module dh_module;
 void dh_module(dict_t *dict)
 {
     add_closure(dict,"diffie-hellman",dh_apply);
diff --git a/log.c b/log.c
index 16ed60a..f4ef800 100644 (file)
--- a/log.c
+++ b/log.c
@@ -555,7 +555,6 @@ void log_from_fd(int fd, cstring_t prefix, struct log_if *log)
                      prefix);
 }
 
-init_module log_module;
 void log_module(dict_t *dict)
 {
     add_closure(dict,"logfile",logfile_apply);
diff --git a/md5.c b/md5.c
index 71fb4f1..0ce1200 100644 (file)
--- a/md5.c
+++ b/md5.c
@@ -267,7 +267,6 @@ struct md5 {
     struct hash_if ops;
 };
 
-init_module md5_module;
 void md5_module(dict_t *dict)
 {
     struct md5 *st;
index cc954fd..76ac91c 100644 (file)
--- a/netlink.c
+++ b/netlink.c
@@ -1067,7 +1067,6 @@ static list_t *null_apply(closure_t *self, struct cloc loc, dict_t *context,
     return new_closure(&st->nl.cl);
 }
 
-init_module netlink_module;
 void netlink_module(dict_t *dict)
 {
     add_closure(dict,"null-netlink",null_apply);
index 6b65bc9..b7c56e3 100644 (file)
@@ -123,7 +123,6 @@ static list_t *adnsresolver_apply(closure_t *self, struct cloc loc,
     return new_closure(&st->cl);
 }
 
-init_module resolver_module;
 void resolver_module(dict_t *dict)
 {
     add_closure(dict,"adns",adnsresolver_apply);
diff --git a/rsa.c b/rsa.c
index 3c82a40..4702fe9 100644 (file)
--- a/rsa.c
+++ b/rsa.c
@@ -487,7 +487,6 @@ assume_valid:
     return new_closure(&st->cl);
 }
 
-init_module rsa_module;
 void rsa_module(dict_t *dict)
 {
     add_closure(dict,"rsa-private",rsapriv_apply);
diff --git a/sha1.c b/sha1.c
index a90958b..7b09f6e 100644 (file)
--- a/sha1.c
+++ b/sha1.c
@@ -314,7 +314,6 @@ struct sha1 {
     struct hash_if ops;
 };
 
-init_module sha1_module;
 void sha1_module(dict_t *dict)
 {
     struct sha1 *st;
diff --git a/site.c b/site.c
index 2fafd91..73b48ec 100644 (file)
--- a/site.c
+++ b/site.c
@@ -1308,7 +1308,6 @@ static list_t *site_apply(closure_t *self, struct cloc loc, dict_t *context,
     return new_closure(&st->cl);
 }
 
-init_module site_module;
 void site_module(dict_t *dict)
 {
     add_closure(dict,"site",site_apply);
diff --git a/slip.c b/slip.c
index de138f9..055caf5 100644 (file)
--- a/slip.c
+++ b/slip.c
@@ -407,7 +407,6 @@ static list_t *userv_apply(closure_t *self, struct cloc loc, dict_t *context,
     return new_closure(&st->slip.nl.cl);
 }
 
-init_module slip_module;
 void slip_module(dict_t *dict)
 {
     add_closure(dict,"userv-ipif",userv_apply);
index dc6ac3e..000170c 100644 (file)
@@ -311,7 +311,6 @@ static list_t *transform_apply(closure_t *self, struct cloc loc,
     return new_closure(&st->cl);
 }
 
-init_module transform_module;
 void transform_module(dict_t *dict)
 {
     struct keyInstance k;
diff --git a/tun.c b/tun.c
index eaa7b8a..cfd5a57 100644 (file)
--- a/tun.c
+++ b/tun.c
@@ -603,7 +603,6 @@ static list_t *tun_bsd_apply(closure_t *self, struct cloc loc, dict_t *context,
     return tun_create(self,loc,context,args,TUN_FLAVOUR_BSD);
 }
 
-init_module tun_module;
 void tun_module(dict_t *dict)
 {
     add_closure(dict,"tun",tun_apply);
diff --git a/udp.c b/udp.c
index 9615a17..f02a05c 100644 (file)
--- a/udp.c
+++ b/udp.c
@@ -302,7 +302,6 @@ static list_t *udp_apply(closure_t *self, struct cloc loc, dict_t *context,
     return new_closure(&st->cl);
 }
 
-init_module udp_module;
 void udp_module(dict_t *dict)
 {
     add_closure(dict,"udp",udp_apply);
diff --git a/util.c b/util.c
index d2a3e98..9a009dc 100644 (file)
--- a/util.c
+++ b/util.c
@@ -335,7 +335,6 @@ static list_t *buffer_apply(closure_t *self, struct cloc loc, dict_t *context,
     return new_closure(&st->cl);
 }
 
-init_module util_module;
 void util_module(dict_t *dict)
 {
     add_closure(dict,"sysbuffer",buffer_apply);