#include "getcgi.h"
#include "hash.h"
#include "keydb.h"
+#include "log.h"
#include "onak-conf.h"
#include "stats.h"
printf("<P>Looking for path from 0x%llX to 0x%llX</P>\n", from, to);
readconfig();
+ initlogthing("gpgwww", config.logfile);
initdb();
inithash();
dofindpath(from, to, true);
destroyhash();
cleanupdb();
+ cleanuplogthing();
+ cleanupconfig();
puts("<HR>");
- puts("Produced by gpgwww " VERSION ", part of onak. <A HREF=\"mailto:noodles-onak@earth.li\">Jonathan McDowell</A>");
+ puts("Produced by gpgwww " VERSION ", part of onak. "
+ "<A HREF=\"mailto:noodles-onak@earth.li\">"
+ "Jonathan McDowell</A>");
end_html();
+ cleanupcgi(cgiparams);
+ cgiparams = NULL;
+
return EXIT_SUCCESS;
}