Moved to new module init structure.
[citadel.git] / citadel / serv_mrtg.c
index ec2493d767b0c60ffe6c9b6037df8d89b1499fa6..12e09f0f0ec89c96c93b5b005ae21c4ae37627d4 100644 (file)
 #include <limits.h>
 #include "citadel.h"
 #include "server.h"
-#include "sysdep_decls.h"
 #include "citserver.h"
 #include "support.h"
 #include "config.h"
 #include "control.h"
-#include "serv_extensions.h"
 #include "room_ops.h"
 #include "user_ops.h"
 #include "policy.h"
@@ -49,6 +47,9 @@
 #include "tools.h"
 
 
+#include "ctdl_module.h"
+
+
 /*
  * Other functions call this one to output data in MRTG format
  */
@@ -127,7 +128,7 @@ void cmd_mrtg(char *argbuf) {
 }
 
 
-char *serv_mrtg_init(void)
+CTDL_MODULE_INIT(mrtg)
 {
         CtdlRegisterProtoHook(cmd_mrtg, "MRTG", "Supply stats to MRTG");