From cc070c80ba3df01a0cd6e58607524c7839b1b7b8 Mon Sep 17 00:00:00 2001 From: Kaldoran <kaldoran@live.fr> Date: Mon, 15 Feb 2016 12:00:03 -0500 Subject: [PATCH] Fix the autotool Makefile, missing pht include Fix indentation for pull request #37 Fix include error, and use only needed file in pht Fix implementation of function in pht --- include/opendht/indexation/pht.h | 4 +++- src/Makefile.am | 6 ++++-- src/indexation/pht.cpp | 1 - 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/opendht/indexation/pht.h b/include/opendht/indexation/pht.h index 8cfc521f..2e3f15ef 100644 --- a/include/opendht/indexation/pht.h +++ b/include/opendht/indexation/pht.h @@ -10,7 +10,9 @@ #include <iostream> #include <sstream> -#include "opendht.h" +#include "../value.h" +#include "../dhtrunner.h" +#include "../infohash.h" namespace dht { namespace indexation { diff --git a/src/Makefile.am b/src/Makefile.am index f29287a5..2eb007a5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -19,7 +19,8 @@ libopendht_la_SOURCES = \ crypto.cpp \ securedht.cpp \ dhtrunner.cpp \ - default_types.cpp + default_types.cpp \ + indexation/pht.cpp if WIN32 libopendht_la_SOURCES += rng.cpp @@ -42,4 +43,5 @@ nobase_include_HEADERS = \ ../include/opendht/dhtrunner.h \ ../include/opendht/default_types.h \ ../include/opendht/log.h \ - ../include/opendht/rng.h + ../include/opendht/rng.h \ + ../include/opendht/indexation/pht.h diff --git a/src/indexation/pht.cpp b/src/indexation/pht.cpp index 8fc45138..80aad4b8 100644 --- a/src/indexation/pht.cpp +++ b/src/indexation/pht.cpp @@ -166,7 +166,6 @@ void Pht::insert(Key k, Value v, Dht::DoneCallbackSimple done_cb) { lookupStep(kp, lo, hi, vals, [=](std::vector<std::shared_ptr<Value>>& values, Prefix p) { *final_prefix = Prefix(p); - return true; }, [=](bool ok){ if (not ok) { -- GitLab