projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cscvs to tla changeset 34
[onak.git]
/
maxpath.c
diff --git
a/maxpath.c
b/maxpath.c
index f46ea4cb13db4cfa6f0c7657f7a2cffc1ddec6ba..ffa230fd2c1e557ed83fa8d269b48376a28a472e 100644
(file)
--- a/
maxpath.c
+++ b/
maxpath.c
@@
-13,6
+13,7
@@
#include "hash.h"
#include "keydb.h"
#include "ll.h"
#include "hash.h"
#include "keydb.h"
#include "ll.h"
+#include "onak-conf.h"
#include "stats.h"
void findmaxpath(unsigned long max)
#include "stats.h"
void findmaxpath(unsigned long max)
@@
-21,7
+22,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,15
+51,18
@@
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[])
{
+ readconfig();
initdb();
inithash();
findmaxpath(30);
printf("--------\n");
findmaxpath(30);
initdb();
inithash();
findmaxpath(30);
printf("--------\n");
findmaxpath(30);
+ destroyhash();
cleanupdb();
return EXIT_SUCCESS;
cleanupdb();
return EXIT_SUCCESS;