Browse code

static compile clean-ups

Andrei Pelinescu-Onciul authored on 06/02/2002 13:34:50
Showing 3 changed files
... ...
@@ -22,6 +22,7 @@ x plugin interface
22 22
 - add User-Agent (for the replies)
23 23
 
24 24
 Low priority:
25
+- make it easier to register a statically linkable module.
25 26
 - add support for -u user and -g group (not only -u uid, -g uid)
26 27
 - change uid/gid after opening the sockets
27 28
 - add -t, -w, -u -g equivalents to the config file
... ...
@@ -15,6 +15,9 @@ struct sr_module* modules=0;
15 15
 #ifdef STATIC_TM
16 16
 	extern struct module_exports* tm_mod_register();
17 17
 #endif
18
+#ifdef STATIC_MAXFWD
19
+	extern struct module_exports* maxfwd_mod_register();
20
+#endif
18 21
 
19 22
 
20 23
 /* initializes statically built (compiled in) modules*/
... ...
@@ -24,7 +27,7 @@ int init_builtin_modules()
24 24
 		register_module(tm_mod_register,"built-in", 0);
25 25
 	#endif
26 26
 	#ifdef STATIC_MAXFWD
27
-		register_module(maxfwd_mod_register, "buitl-in", 0);
27
+		register_module(maxfwd_mod_register, "built-in", 0);
28 28
 	#endif
29 29
 }
30 30
 
... ...
@@ -24,9 +24,9 @@ loop_checks=0
24 24
 
25 25
 #modules
26 26
 #loadmodule "modules/print/print.so"
27
-loadmodule "modules/tm/tm.so"
28
-loadmodule "modules/rr/rr.so"
29
-loadmodule "modules/maxfwd/maxfwd.so"
27
+#loadmodule "modules/tm/tm.so"
28
+#loadmodule "modules/rr/rr.so"
29
+#loadmodule "modules/maxfwd/maxfwd.so"
30 30
 
31 31
 
32 32
 route{