X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/2dcd74da02ebd3996947173e73616cd9d7da5bb0..bf52d4344cd29ab86c1d5981d2ea4d1717eb2f84:/maxpath.c diff --git a/maxpath.c b/maxpath.c index 21f23c2..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" @@ -64,19 +65,21 @@ void findmaxpath(unsigned long max) from->keyid, to->keyid, distance); - dofindpath(to->keyid, from->keyid, false); + dofindpath(to->keyid, from->keyid, false, 1); } 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;