X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;ds=inline;f=wotsap.c;h=37653f7c3d74fe8ad295129ec88a6da2a30ed528;hb=add20f8102d4e5a43957b62e59174378a23f4bc2;hp=66dc94699d2dc12150e541b543b0e6e12c3d47c3;hpb=8e0907be1d73011075a99a0c029c56664e12843e;p=onak.git
diff --git a/wotsap.c b/wotsap.c
index 66dc946..37653f7 100644
--- a/wotsap.c
+++ b/wotsap.c
@@ -19,8 +19,7 @@
* more details.
*
* You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program. If not, see .
*/
#include
@@ -29,11 +28,12 @@
#include
#include
+#include "build-config.h"
+
#include "hash.h"
#include "log.h"
#include "onak-conf.h"
#include "stats.h"
-#include "version.h"
static struct ll *sortkeyll(struct ll *keys)
{
@@ -203,7 +203,7 @@ int main(int argc, char *argv[])
readconfig(configfile);
initlogthing("wotsap", config.logfile);
- dbctx = config.dbinit(true);
+ dbctx = config.dbinit(config.backend, true);
if (dbctx != NULL) {
inithash();
wotsap(dbctx, dbctx->getfullkeyid(dbctx, keyid),
@@ -215,4 +215,5 @@ int main(int argc, char *argv[])
}
cleanuplogthing();
cleanupconfig();
+ free(configfile);
}