X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=maxpath.c;h=191ce8aa3764c82ab07033e3bf7a34b88c0bd5ad;hb=ec6d9d2d119c9b215103c13bcc5b9b44bd24b997;hp=b0d2e9a9c6a716a2f4f6368ee4c1e6f1b9179911;hpb=7f046503b8b8dcec51c1f7752e87ba0ba0af0631;p=onak.git diff --git a/maxpath.c b/maxpath.c index b0d2e9a..191ce8a 100644 --- a/maxpath.c +++ b/maxpath.c @@ -4,8 +4,6 @@ * Jonathan McDowell * * Copyright 2001-2002 Project Purple. - * - * $Id: maxpath.c,v 1.10 2003/10/15 21:15:21 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" @@ -72,13 +71,15 @@ void findmaxpath(unsigned long max) int main(int argc, char *argv[]) { readconfig(NULL); - initdb(); + initlogthing("maxpath", config.logfile); + initdb(true); inithash(); findmaxpath(30); printf("--------\n"); findmaxpath(30); destroyhash(); cleanupdb(); + cleanuplogthing(); cleanupconfig(); return EXIT_SUCCESS;