#include "hash.h"
#include "keydb.h"
#include "ll.h"
+#include "log.h"
#include "onak-conf.h"
#include "stats.h"
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;