X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/e02c731dfbb288c736f2cd09a9b6df0507c59ddd..f788fbc43a1a07c2116d3f7cb25d73e66ede7a96:/maxpath.c diff --git a/maxpath.c b/maxpath.c index f46ea4c..ffa230f 100644 --- a/maxpath.c +++ b/maxpath.c @@ -13,6 +13,7 @@ #include "hash.h" #include "keydb.h" #include "ll.h" +#include "onak-conf.h" #include "stats.h" void findmaxpath(unsigned long max) @@ -21,7 +22,6 @@ void findmaxpath(unsigned long max) struct ll *curkey; unsigned long distance, loop; - printf("In findmaxpath\n"); distance = 0; from = to = tmp = NULL; hash_getkeysigs(0xF1BD4BE45B430367); @@ -51,15 +51,18 @@ void findmaxpath(unsigned long max) from->keyid, to->keyid, distance); + dofindpath(to->keyid, from->keyid, false); } int main(int argc, char *argv[]) { + readconfig(); initdb(); inithash(); findmaxpath(30); printf("--------\n"); findmaxpath(30); + destroyhash(); cleanupdb(); return EXIT_SUCCESS;