projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update FSF address in copyright file.
[onak.git]
/
maxpath.c
diff --git
a/maxpath.c
b/maxpath.c
index 922cc8cf65ab94753471b7118ec021dca12b237f..191ce8aa3764c82ab07033e3bf7a34b88c0bd5ad 100644
(file)
--- a/
maxpath.c
+++ b/
maxpath.c
@@
-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: maxpath.c,v 1.11 2004/03/23 12:33:47 noodles Exp $
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-16,6
+14,7
@@
#include "hash.h"
#include "keydb.h"
#include "ll.h"
#include "hash.h"
#include "keydb.h"
#include "ll.h"
+#include "log.h"
#include "onak-conf.h"
#include "stats.h"
#include "onak-conf.h"
#include "stats.h"
@@
-72,6
+71,7
@@
void findmaxpath(unsigned long max)
int main(int argc, char *argv[])
{
readconfig(NULL);
int main(int argc, char *argv[])
{
readconfig(NULL);
+ initlogthing("maxpath", config.logfile);
initdb(true);
inithash();
findmaxpath(30);
initdb(true);
inithash();
findmaxpath(30);
@@
-79,6
+79,7
@@
int main(int argc, char *argv[])
findmaxpath(30);
destroyhash();
cleanupdb();
findmaxpath(30);
destroyhash();
cleanupdb();
+ cleanuplogthing();
cleanupconfig();
return EXIT_SUCCESS;
cleanupconfig();
return EXIT_SUCCESS;