]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - sixdegrees.c
cscvs to tla changeset 75
[onak.git] / sixdegrees.c
index 1afbf7764337b3af7173af8e9fcb2e1dd23565d1..128e8f323ba120ed34fc9e90867388b42e57e03d 100644 (file)
@@ -99,10 +99,16 @@ void sixdegrees(uint64_t keyid)
 
 int main(int argc, char *argv[])
 {
 
 int main(int argc, char *argv[])
 {
+       uint64_t keyid = 0x5B430367;
+
+       if (argc == 2) {
+               keyid = strtoll(argv[1], NULL, 16);
+       }
+
        readconfig();
        initdb();
        inithash();
        readconfig();
        initdb();
        inithash();
-       sixdegrees(0x5B430367);
+       sixdegrees(keyid);
        destroyhash();
        cleanupdb();
        cleanupconfig();
        destroyhash();
        cleanupdb();
        cleanupconfig();