X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/0f4971d043c38bae1bfb95201622a1405110f899..5538c5782135666d73f7615a37ea9689afa07dcd:/maxpath.c diff --git a/maxpath.c b/maxpath.c index 171d6b1..191ce8a 100644 --- a/maxpath.c +++ b/maxpath.c @@ -4,8 +4,6 @@ * Jonathan McDowell * * Copyright 2001-2002 Project Purple. - * - * $Id: maxpath.c,v 1.9 2003/06/04 20:57:10 noodles Exp $ */ #include @@ -16,6 +14,7 @@ #include "hash.h" #include "keydb.h" #include "ll.h" +#include "log.h" #include "onak-conf.h" #include "stats.h" @@ -71,14 +70,16 @@ void findmaxpath(unsigned long max) int main(int argc, char *argv[]) { - readconfig(); - initdb(); + readconfig(NULL); + initlogthing("maxpath", config.logfile); + initdb(true); inithash(); findmaxpath(30); printf("--------\n"); findmaxpath(30); destroyhash(); cleanupdb(); + cleanuplogthing(); cleanupconfig(); return EXIT_SUCCESS;