Fixed system() calls
authorTorste Aikio <zokier@zokier.laptop>
Fri, 21 May 2010 13:51:16 +0000 (16:51 +0300)
committerTorste Aikio <zokier@zokier.laptop>
Fri, 21 May 2010 13:51:16 +0000 (16:51 +0300)
src/irctrl.cpp
src/settingsdlg.cpp

index 4e098c8..2642142 100644 (file)
@@ -3,12 +3,12 @@
 
 IrCtrl::IrCtrl()
 {
-    std::system("./lircctl start");
+    std::system("lircctl start");
 }
 
 IrCtrl::~IrCtrl()
 {
-    std::system("./lircctl stop");
+    std::system("lircctl stop");
 }
 
 void IrCtrl::setRemoteName(const QString &newRemoteName)
index ca5ef1d..febbddc 100644 (file)
@@ -1,5 +1,7 @@
 #include "settingsdlg.h"
 
+#include <cstdlib>
+
 #include <QDebug>
 #include <QHBoxLayout>
 #include <QLabel>
@@ -160,6 +162,6 @@ void SettingsDlg::remoteDownloadFinished(QNetworkReply *reply)
     reply->close();
     reply->deleteLater();
 
-    system("lircctl restart");
+    std::system("lircctl restart");
 }