projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add basic testing infrastructure + initial tests
[onak.git]
/
maxpath.c
diff --git
a/maxpath.c
b/maxpath.c
index 4d65588636e5a68fe03e43f4dbd55668e4e00963..0bdc04b9c49bba84ad72e1ec96d7945919eb2e20 100644
(file)
--- a/
maxpath.c
+++ b/
maxpath.c
@@
-28,10
+28,10
@@
void findmaxpath(unsigned long max)
from = to = tmp = NULL;
/*
from = to = tmp = NULL;
/*
- * My (noodles@earth.li,
D
SA) key is in the strongly connected set of
+ * My (noodles@earth.li,
R
SA) key is in the strongly connected set of
* keys, so we use it as a suitable starting seed.
*/
* keys, so we use it as a suitable starting seed.
*/
- config.dbbackend->cached_getkeysigs(0x
F1BD4BE45B430367
);
+ config.dbbackend->cached_getkeysigs(0x
94FA372B2DA8B985
);
/*
* Loop through the hash examining each key present and finding the
/*
* Loop through the hash examining each key present and finding the
@@
-53,7
+53,7
@@
void findmaxpath(unsigned long max)
to = tmp;
distance = to->colour;
printf("Current max path (#%ld) is from %"
to = tmp;
distance = to->colour;
printf("Current max path (#%ld) is from %"
- PRI
x64 " to %" PRIx
64
+ PRI
X64 " to %" PRIX
64
" (%ld steps)\n",
loop,
from->keyid,
" (%ld steps)\n",
loop,
from->keyid,
@@
-63,7
+63,7
@@
void findmaxpath(unsigned long max)
curkey=curkey->next;
}
}
curkey=curkey->next;
}
}
- printf("Max path is from %" PRI
x64 " to %" PRIx
64 " (%ld steps)\n",
+ printf("Max path is from %" PRI
X64 " to %" PRIX
64 " (%ld steps)\n",
from->keyid,
to->keyid,
distance);
from->keyid,
to->keyid,
distance);