X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/4b8483ae278577a3adc8d84da81d77019704466f..656bb5c3981ae175698ff8782c7ec39e1f6451d1:/maxpath.c diff --git a/maxpath.c b/maxpath.c index 3714281..8c22b4a 100644 --- a/maxpath.c +++ b/maxpath.c @@ -21,10 +21,9 @@ void findmaxpath(unsigned long max) struct ll *curkey; unsigned long distance, loop; - printf("In findmaxpath\n"); distance = 0; from = to = tmp = NULL; - hash_getkeysigs(0x5B430367); + hash_getkeysigs(0xF1BD4BE45B430367); for (loop = 0; (loop < HASHSIZE) && (distance < max); loop++) { curkey = gethashtableentry(loop); @@ -51,6 +50,7 @@ void findmaxpath(unsigned long max) from->keyid, to->keyid, distance); + dofindpath(to->keyid, from->keyid, false); } int main(int argc, char *argv[]) @@ -60,6 +60,7 @@ int main(int argc, char *argv[]) findmaxpath(30); printf("--------\n"); findmaxpath(30); + destroyhash(); cleanupdb(); return EXIT_SUCCESS;