projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to load backends from current dir if none specified.
[onak.git]
/
maxpath.c
diff --git
a/maxpath.c
b/maxpath.c
index 21f23c281655305c196a96bbd70dd4630c1c9a07..191ce8aa3764c82ab07033e3bf7a34b88c0bd5ad 100644
(file)
--- a/
maxpath.c
+++ b/
maxpath.c
@@
-14,6
+14,7
@@
#include "hash.h"
#include "keydb.h"
#include "ll.h"
#include "hash.h"
#include "keydb.h"
#include "ll.h"
+#include "log.h"
#include "onak-conf.h"
#include "stats.h"
#include "onak-conf.h"
#include "stats.h"
@@
-64,19
+65,21
@@
void findmaxpath(unsigned long max)
from->keyid,
to->keyid,
distance);
from->keyid,
to->keyid,
distance);
- dofindpath(to->keyid, from->keyid, false);
+ dofindpath(to->keyid, from->keyid, false
, 1
);
}
int main(int argc, char *argv[])
{
}
int main(int argc, char *argv[])
{
- readconfig();
- initdb();
+ readconfig(NULL);
+ initlogthing("maxpath", config.logfile);
+ initdb(true);
inithash();
findmaxpath(30);
printf("--------\n");
findmaxpath(30);
destroyhash();
cleanupdb();
inithash();
findmaxpath(30);
printf("--------\n");
findmaxpath(30);
destroyhash();
cleanupdb();
+ cleanuplogthing();
cleanupconfig();
return EXIT_SUCCESS;
cleanupconfig();
return EXIT_SUCCESS;