Commit e5ac143a authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix build of linphone-daemon on Linux.

parent b485789d
...@@ -23,10 +23,10 @@ using namespace std; ...@@ -23,10 +23,10 @@ using namespace std;
class ConfigResponse : public Response { class ConfigResponse : public Response {
public: public:
ConfigResponse(const char *value); ConfigResponse(const string &value);
}; };
ConfigResponse::ConfigResponse(const char *value) : Response() { ConfigResponse::ConfigResponse(const string& value) : Response() {
ostringstream ost; ostringstream ost;
ost << "Value: " << value ? value : "<unset>"; ost << "Value: " << value ? value : "<unset>";
setBody(ost.str()); setBody(ost.str());
......
...@@ -112,7 +112,6 @@ void VideoSource::exec(Daemon* app, const string& args) ...@@ -112,7 +112,6 @@ void VideoSource::exec(Daemon* app, const string& args)
LinphoneCall *call = NULL; LinphoneCall *call = NULL;
string subcommand; string subcommand;
int cid; int cid;
int argc = 0;
bool activate = false; bool activate = false;
istringstream ist(args); istringstream ist(args);
......
...@@ -683,7 +683,7 @@ string Daemon::readPipe() { ...@@ -683,7 +683,7 @@ string Daemon::readPipe() {
mChildFd = (ortp_pipe_t)-1; mChildFd = (ortp_pipe_t)-1;
return NULL; return NULL;
} }
buffer[ret] = '\0; buffer[ret] = '\0';
return buffer; return buffer;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment