X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=gpgwww.c;h=f5b16448de0f4591318631bda69dd9c093b19976;hb=0d38a62f4c8e92149a5daade98079fb7445b7a0b;hp=75022b86e83b5d74d1312c4fc161fc3968e91d92;hpb=4aafe74aea2d616a5d9611c6e3c01a182a0b37ec;p=onak.git diff --git a/gpgwww.c b/gpgwww.c index 75022b8..f5b1644 100644 --- a/gpgwww.c +++ b/gpgwww.c @@ -14,6 +14,7 @@ #include "getcgi.h" #include "hash.h" #include "keydb.h" +#include "log.h" #include "onak-conf.h" #include "stats.h" @@ -54,15 +55,24 @@ int main(int argc, char *argv[]) } printf("

Looking for path from 0x%llX to 0x%llX

\n", from, to); + readconfig(); + initlogthing("gpgwww", config.logfile); initdb(); inithash(); dofindpath(from, to, true); destroyhash(); cleanupdb(); + cleanuplogthing(); + cleanupconfig(); puts("
"); - puts("Produced by gpgwww " VERSION ", part of onak. Jonathan McDowell"); + puts("Produced by gpgwww " VERSION ", part of onak. " + "" + "Jonathan McDowell"); end_html(); + cleanupcgi(cgiparams); + cgiparams = NULL; + return EXIT_SUCCESS; }