Browse Source

static compile clean-ups

Andrei Pelinescu-Onciul 23 years ago
parent
commit
6eb22d944b
3 changed files with 8 additions and 4 deletions
  1. 1 0
      TODO
  2. 4 1
      sr_module.c
  3. 3 3
      test/th-uri.cfg

+ 1 - 0
TODO

@@ -22,6 +22,7 @@ x plugin interface
 - add User-Agent (for the replies)
 
 Low priority:
+- make it easier to register a statically linkable module.
 - add support for -u user and -g group (not only -u uid, -g uid)
 - change uid/gid after opening the sockets
 - add -t, -w, -u -g equivalents to the config file

+ 4 - 1
sr_module.c

@@ -15,6 +15,9 @@ struct sr_module* modules=0;
 #ifdef STATIC_TM
 	extern struct module_exports* tm_mod_register();
 #endif
+#ifdef STATIC_MAXFWD
+	extern struct module_exports* maxfwd_mod_register();
+#endif
 
 
 /* initializes statically built (compiled in) modules*/
@@ -24,7 +27,7 @@ int init_builtin_modules()
 		register_module(tm_mod_register,"built-in", 0);
 	#endif
 	#ifdef STATIC_MAXFWD
-		register_module(maxfwd_mod_register, "buitl-in", 0);
+		register_module(maxfwd_mod_register, "built-in", 0);
 	#endif
 }
 

+ 3 - 3
test/th-uri.cfg

@@ -24,9 +24,9 @@ loop_checks=0
 
 #modules
 #loadmodule "modules/print/print.so"
-loadmodule "modules/tm/tm.so"
-loadmodule "modules/rr/rr.so"
-loadmodule "modules/maxfwd/maxfwd.so"
+#loadmodule "modules/tm/tm.so"
+#loadmodule "modules/rr/rr.so"
+#loadmodule "modules/maxfwd/maxfwd.so"
 
 
 route{