From 02f5101cc453ce1c2f4614b7e8cd6aa2b63d6bee Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 9 Jul 2012 14:58:11 +0200 Subject: [PATCH] change mysytem char to const char Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/b9648c83595ab86c819a82378110e6060b475b6c Author: Jacek Jendrzej Date: 2012-07-09 (Mon, 09 Jul 2012) --- src/gui/plugins.cpp | 4 ++-- src/system/configure_network.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/plugins.cpp b/src/gui/plugins.cpp index 13ec9c526..de8b7fbb0 100644 --- a/src/gui/plugins.cpp +++ b/src/gui/plugins.cpp @@ -345,7 +345,7 @@ void CPlugins::startScriptPlugin(int number) } } -int mysystem(char * cmd, char * arg1, char * arg2); +int mysystem(const char * cmd,const char * arg1,const char * arg2); void CPlugins::startPlugin(int number,int /*param*/) { // always delete old output @@ -592,7 +592,7 @@ void CPlugins::startPlugin(int number,int /*param*/) g_RCInput->stopInput(); //frameBuffer->setMode(720, 576, 8 * sizeof(fb_pixel_t)); printf("Starting %s\n", plugin_list[number].pluginfile.c_str()); - mysystem((char *) plugin_list[number].pluginfile.c_str(), NULL, NULL); + mysystem(plugin_list[number].pluginfile.c_str(), NULL, NULL); //frameBuffer->setMode(720, 576, 8 * sizeof(fb_pixel_t)); frameBuffer->paintBackground(); g_RCInput->restartInput(); diff --git a/src/system/configure_network.cpp b/src/system/configure_network.cpp index cc58d4b98..06f144b38 100644 --- a/src/system/configure_network.cpp +++ b/src/system/configure_network.cpp @@ -216,7 +216,7 @@ void CNetworkConfig::commitConfig(void) } } -int mysystem(char * cmd, char * arg1, char * arg2) +int mysystem(const char * cmd, const char * arg1, const char * arg2) { int i; pid_t pid;