]> the.earth.li Git - onak.git/blobdiff - maxpath.c
cscvs to tla changeset 46
[onak.git] / maxpath.c
index 8c22b4a3a8ad86390f1cbf9a511064ba67639972..0bb5fcf1aca5aa7b2a6f4aaeb359cbee2c889b78 100644 (file)
--- 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)
@@ -23,12 +24,12 @@ void findmaxpath(unsigned long max)
 
        distance = 0;
        from = to = tmp = NULL;
-       hash_getkeysigs(0xF1BD4BE45B430367);
+       cached_getkeysigs(0xF1BD4BE45B430367);
 
        for (loop = 0; (loop < HASHSIZE) && (distance < max); loop++) {
                curkey = gethashtableentry(loop);
                while (curkey != NULL && distance < max) {
-                       hash_getkeysigs(((struct stats_key *)
+                       cached_getkeysigs(((struct stats_key *)
                                        curkey->object)->keyid);
                        initcolour(false);
                        tmp = furthestkey((struct stats_key *)
@@ -55,6 +56,7 @@ void findmaxpath(unsigned long max)
 
 int main(int argc, char *argv[])
 {
+       readconfig();
        initdb();
        inithash();
        findmaxpath(30);
@@ -62,6 +64,7 @@ int main(int argc, char *argv[])
        findmaxpath(30);
        destroyhash();
        cleanupdb();
+       cleanupconfig();
        
        return EXIT_SUCCESS;
 }