]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - maxpath.c
cscvs to tla changeset 18
[onak.git] / maxpath.c
index f46ea4cb13db4cfa6f0c7657f7a2cffc1ddec6ba..8c22b4a3a8ad86390f1cbf9a511064ba67639972 100644 (file)
--- a/maxpath.c
+++ b/maxpath.c
@@ -21,7 +21,6 @@ void findmaxpath(unsigned long max)
        struct ll *curkey;
        unsigned long distance, loop;
 
        struct ll *curkey;
        unsigned long distance, loop;
 
-       printf("In findmaxpath\n");
        distance = 0;
        from = to = tmp = NULL;
        hash_getkeysigs(0xF1BD4BE45B430367);
        distance = 0;
        from = to = tmp = NULL;
        hash_getkeysigs(0xF1BD4BE45B430367);
@@ -51,6 +50,7 @@ void findmaxpath(unsigned long max)
                        from->keyid,
                        to->keyid,
                        distance);
                        from->keyid,
                        to->keyid,
                        distance);
+       dofindpath(to->keyid, from->keyid, false);
 }
 
 int main(int argc, char *argv[])
 }
 
 int main(int argc, char *argv[])
@@ -60,6 +60,7 @@ int main(int argc, char *argv[])
        findmaxpath(30);
        printf("--------\n");
        findmaxpath(30);
        findmaxpath(30);
        printf("--------\n");
        findmaxpath(30);
+       destroyhash();
        cleanupdb();
        
        return EXIT_SUCCESS;
        cleanupdb();
        
        return EXIT_SUCCESS;