]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - sixdegrees.c
Remove bashism from postrm (Debian packaging)
[onak.git] / sixdegrees.c
index f2700290bdedc1b3bc64fa5f7d5732cb65790546..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.6 2004/03/23 12:33:47 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);
+       initlogthing("sixdegrees", config.logfile);
        initdb(true);
        inithash();
        sixdegrees(getfullkeyid(keyid));
        destroyhash();
        cleanupdb();
        initdb(true);
        inithash();
        sixdegrees(getfullkeyid(keyid));
        destroyhash();
        cleanupdb();
+       cleanuplogthing();
        cleanupconfig();
 
        return 0;
        cleanupconfig();
 
        return 0;