X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/0f4971d043c38bae1bfb95201622a1405110f899..fb43c9ffd09b3f5e8fd35651daed59839221fe36:/sixdegrees.c?ds=sidebyside diff --git a/sixdegrees.c b/sixdegrees.c index 9b13cfb..d7d650f 100644 --- a/sixdegrees.c +++ b/sixdegrees.c @@ -4,8 +4,6 @@ * Jonathan McDowell * * Copyright 2001-2002 Project Purple. - * - * $Id: sixdegrees.c,v 1.4 2003/06/04 20:57:12 noodles Exp $ */ #include @@ -15,6 +13,7 @@ #include "keydb.h" #include "keystructs.h" #include "ll.h" +#include "log.h" #include "onak-conf.h" #include "stats.h" @@ -126,12 +125,14 @@ int main(int argc, char *argv[]) keyid = strtoll(argv[1], NULL, 16); } - readconfig(); - initdb(); + readconfig(NULL); + initlogthing("sixdegrees", config.logfile); + initdb(true); inithash(); sixdegrees(getfullkeyid(keyid)); destroyhash(); cleanupdb(); + cleanuplogthing(); cleanupconfig(); return 0;