projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add keyd backend (persistant database access over Unix socket)
[onak.git]
/
sixdegrees.c
diff --git
a/sixdegrees.c
b/sixdegrees.c
index d647f5e78b468f1246d6b69883ade9cacc5ec01e..d7d650f3c1260f3265a941852560f29e4225cadf 100644
(file)
--- a/
sixdegrees.c
+++ b/
sixdegrees.c
@@
-13,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"
@@
-124,12
+125,14
@@
int main(int argc, char *argv[])
keyid = strtoll(argv[1], NULL, 16);
}
keyid = strtoll(argv[1], NULL, 16);
}
- readconfig();
- initdb();
+ readconfig(NULL);
+ 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;