X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/4b8483ae278577a3adc8d84da81d77019704466f..a953676d714ba11d3b9509bbea747ad0858b28ba:/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;