From 4c697995f8aa32c5ab1474509691d100e5f06a3f Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Mon, 31 May 2004 23:47:30 +0000 Subject: [PATCH 1/1] cscvs to tla changeset 62 Author: noodles Date: 2003/02/16 00:21:48 Allow specifying a keyid on the command line for sixdegrees (Simon Huggins). --- sixdegrees.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sixdegrees.c b/sixdegrees.c index 1afbf77..128e8f3 100644 --- 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(); -- 2.39.5