]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - sixdegrees.c
Update version to mark arch build.
[onak.git] / sixdegrees.c
index a21ed0ef9c0f1bd84309e49f0c47202eb2d27d56..d7d650f3c1260f3265a941852560f29e4225cadf 100644 (file)
@@ -4,8 +4,6 @@
  * Jonathan McDowell <noodles@earth.li>
  *
  * Copyright 2001-2002 Project Purple.
  * Jonathan McDowell <noodles@earth.li>
  *
  * Copyright 2001-2002 Project Purple.
- *
- * $Id: sixdegrees.c,v 1.5 2003/10/15 21:15:21 noodles Exp $
  */
 
 #include <stdio.h>
  */
 
 #include <stdio.h>
@@ -15,6 +13,7 @@
 #include "keydb.h"
 #include "keystructs.h"
 #include "ll.h"
 #include "keydb.h"
 #include "keystructs.h"
 #include "ll.h"
+#include "log.h"
 #include "onak-conf.h"
 #include "stats.h"
 
 #include "onak-conf.h"
 #include "stats.h"
 
@@ -127,11 +126,13 @@ int main(int argc, char *argv[])
        }
 
        readconfig(NULL);
        }
 
        readconfig(NULL);
-       initdb();
+       initlogthing("sixdegrees", config.logfile);
+       initdb(true);
        inithash();
        sixdegrees(getfullkeyid(keyid));
        destroyhash();
        cleanupdb();
        inithash();
        sixdegrees(getfullkeyid(keyid));
        destroyhash();
        cleanupdb();
+       cleanuplogthing();
        cleanupconfig();
 
        return 0;
        cleanupconfig();
 
        return 0;