diff options
-rw-r--r-- | src/FbCommands.cc | 4 | ||||
-rw-r--r-- | util/fbrun/FbRun.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index fbe41bd..8d57456 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -131,11 +131,11 @@ void ExecuteCmd::execute() { | |||
131 | displaystring += intbuff; | 131 | displaystring += intbuff; |
132 | setsid(); | 132 | setsid(); |
133 | putenv(const_cast<char *>(displaystring.c_str())); | 133 | putenv(const_cast<char *>(displaystring.c_str())); |
134 | execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0); | 134 | execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), static_cast<void*>(NULL)); |
135 | exit(0); | 135 | exit(0); |
136 | } | 136 | } |
137 | #else // __EMX__ | 137 | #else // __EMX__ |
138 | spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_cmd.c_str(), 0); | 138 | spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_cmd.c_str(), static_cast<void*>(NULL)); |
139 | #endif // !__EMX__ | 139 | #endif // !__EMX__ |
140 | 140 | ||
141 | } | 141 | } |
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index da3ee6b..118b82d 100644 --- a/util/fbrun/FbRun.cc +++ b/util/fbrun/FbRun.cc | |||
@@ -117,7 +117,7 @@ void FbRun::run(const std::string &command) { | |||
117 | // fork and execute program | 117 | // fork and execute program |
118 | if (!fork()) { | 118 | if (!fork()) { |
119 | setsid(); | 119 | setsid(); |
120 | execl("/bin/sh", "/bin/sh", "-c", command.c_str(), 0); | 120 | execl("/bin/sh", "/bin/sh", "-c", command.c_str(), static_cast<void*>(NULL)); |
121 | exit(0); //exit child | 121 | exit(0); //exit child |
122 | } | 122 | } |
123 | 123 | ||