diff --git a/daemon/daemon.cc b/daemon/daemon.cc index ebac0fbaf..d6723f2ee 100644 --- a/daemon/daemon.cc +++ b/daemon/daemon.cc @@ -294,7 +294,7 @@ Daemon::Daemon(const char *config_path, const char *factory_config_path, const c if (pipe_name == NULL) { #ifdef HAVE_READLINE const char *homedir = getenv("HOME"); - rl_readline_name = "daemon"; + rl_readline_name = (char*)"daemon"; if (homedir == NULL) homedir = "."; mHistfile = string(homedir) + string("/.linphone_history");