projects
/
onak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5b6afd
)
cscvs to tla changeset 62
author
Jonathan McDowell
<noodles@earth.li>
Mon, 31 May 2004 23:47:30 +0000
(23:47 +0000)
committer
Jonathan McDowell
<noodles@earth.li>
Mon, 31 May 2004 23:47:30 +0000
(23:47 +0000)
Author: noodles
Date: 2003/02/16 00:21:48
Allow specifying a keyid on the command line for sixdegrees (Simon Huggins).
sixdegrees.c
patch
|
blob
|
history
diff --git
a/sixdegrees.c
b/sixdegrees.c
index 1afbf7764337b3af7173af8e9fcb2e1dd23565d1..128e8f323ba120ed34fc9e90867388b42e57e03d 100644
(file)
--- a/
sixdegrees.c
+++ b/
sixdegrees.c
@@
-99,10
+99,16
@@
void sixdegrees(uint64_t keyid)
int main(int argc, char *argv[])
{
+ uint64_t keyid = 0x5B430367;
+
+ if (argc == 2) {
+ keyid = strtoll(argv[1], NULL, 16);
+ }
+
readconfig();
initdb();
inithash();
- sixdegrees(
0x5B430367
);
+ sixdegrees(
keyid
);
destroyhash();
cleanupdb();
cleanupconfig();