From e5ac143a2c7a6891dea547a9f0c1a30fced9db67 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 30 Nov 2016 10:33:36 +0100 Subject: [PATCH] Fix build of linphone-daemon on Linux. --- daemon/commands/config.cc | 4 ++-- daemon/commands/video.cc | 1 - daemon/daemon.cc | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/daemon/commands/config.cc b/daemon/commands/config.cc index ca77b8845..01f73844d 100644 --- a/daemon/commands/config.cc +++ b/daemon/commands/config.cc @@ -23,10 +23,10 @@ using namespace std; class ConfigResponse : public Response { public: - ConfigResponse(const char *value); + ConfigResponse(const string &value); }; -ConfigResponse::ConfigResponse(const char *value) : Response() { +ConfigResponse::ConfigResponse(const string& value) : Response() { ostringstream ost; ost << "Value: " << value ? value : ""; setBody(ost.str()); diff --git a/daemon/commands/video.cc b/daemon/commands/video.cc index aa08bf7a7..c7a5a02a0 100644 --- a/daemon/commands/video.cc +++ b/daemon/commands/video.cc @@ -112,7 +112,6 @@ void VideoSource::exec(Daemon* app, const string& args) LinphoneCall *call = NULL; string subcommand; int cid; - int argc = 0; bool activate = false; istringstream ist(args); diff --git a/daemon/daemon.cc b/daemon/daemon.cc index c1ed1ef60..84bda58f3 100644 --- a/daemon/daemon.cc +++ b/daemon/daemon.cc @@ -683,7 +683,7 @@ string Daemon::readPipe() { mChildFd = (ortp_pipe_t)-1; return NULL; } - buffer[ret] = '\0; + buffer[ret] = '\0'; return buffer; } }