]> jfr.im git - irc/quakenet/newserv.git/commitdiff
PATRICIA: remove unused (old debug) FILE handle
authorPaul <redacted>
Sun, 28 Jul 2013 21:35:48 +0000 (22:35 +0100)
committerPaul <redacted>
Sun, 28 Jul 2013 21:35:48 +0000 (22:35 +0100)
patricia/patricia_commands.c

index 427349b56ed52024f6051e2eee7bff005887c395..a3322ed20fd6ecea92940deccd111ed6e4d6d379 100644 (file)
 
 MODULE_VERSION("")
 
-FILE* dumpip_logfp;
 int nc_cmd_dumptree(void *source, int cargc, char **cargv);
 int nc_cmd_usercount(void *source, int cargc, char **cargv);
 
 void _init() {
-  if (!(dumpip_logfp = fopen("log/iplist", "w")))
-    Error("dumpip", ERR_ERROR, "Failed to open log file!");
   registercontrolhelpcmd("dumptree", NO_DEVELOPER, 2, &nc_cmd_dumptree, 
                                   "Dumps diaganostic information on the patricia trie structure\n"
                                   "Usage: dumptree <ipv4|ipv6|cidr4|cidr6> [int]\n" 
@@ -43,8 +40,6 @@ void _init() {
 }
 
 void _fini() {
-  if (dumpip_logfp)
-    fclose(dumpip_logfp);
   deregistercontrolcmd("dumptree", &nc_cmd_dumptree);
   deregistercontrolcmd("usercount", &nc_cmd_usercount);
 }