summaryrefslogtreecommitdiffstats
path: root/src/mad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mad.cpp')
-rw-r--r--src/mad.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mad.cpp b/src/mad.cpp
index a5162c3..c89487b 100644
--- a/src/mad.cpp
+++ b/src/mad.cpp
@@ -35,7 +35,7 @@
using namespace Mad;
-static void requestFinished(const Common::Request&) {
+static void requestFinished(Common::Request&) {
Common::Logger::log("Identified.");
}
@@ -69,7 +69,7 @@ int main() {
//char hostname[256];
//gethostname(hostname, sizeof(hostname));
//Common::RequestManager::get()->sendRequest<Daemon::Requests::IdentifyRequest>(connection, sigc::ptr_fun(requestFinished), hostname);
- Common::RequestManager::get()->sendRequest<Common::Requests::IdentifyRequest>(connection, &requestFinished, "test");
+ Common::RequestManager::get()->sendRequest1<Common::Requests::IdentifyRequest>(connection, "test", &requestFinished);
connection->waitWhileConnected();