X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=maxpath.c;h=191ce8aa3764c82ab07033e3bf7a34b88c0bd5ad;hb=0b5448fe699b652d965060467c595430c0a60137;hp=2f813dec734e555a2359fb1278c95d6e658e2fac;hpb=e3ee7975fc8f8b343390272663b8c644030b17c1;p=onak.git diff --git a/maxpath.c b/maxpath.c index 2f813de..191ce8a 100644 --- a/maxpath.c +++ b/maxpath.c @@ -14,6 +14,7 @@ #include "hash.h" #include "keydb.h" #include "ll.h" +#include "log.h" #include "onak-conf.h" #include "stats.h" @@ -69,14 +70,16 @@ void findmaxpath(unsigned long max) int main(int argc, char *argv[]) { - readconfig(); - initdb(); + readconfig(NULL); + initlogthing("maxpath", config.logfile); + initdb(true); inithash(); findmaxpath(30); printf("--------\n"); findmaxpath(30); destroyhash(); cleanupdb(); + cleanuplogthing(); cleanupconfig(); return EXIT_SUCCESS;