summaryrefslogtreecommitdiff
authordwmw2 <dwmw2>2003-06-07 16:05:15 (UTC)
committer dwmw2 <dwmw2>2003-06-07 16:05:15 (UTC)
commit1adb158cfd65a5771af279e0e774f45fcc860faf (patch) (unidiff)
tree52bb6951850ddae823a1a1ebcab1c7e6775cef84
parente02157a68d186a17778d3b393a327660df5fbac3 (diff)
downloadopie-1adb158cfd65a5771af279e0e774f45fcc860faf.zip
opie-1adb158cfd65a5771af279e0e774f45fcc860faf.tar.gz
opie-1adb158cfd65a5771af279e0e774f45fcc860faf.tar.bz2
execpppd returns true on success, not zero
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/modem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/ppp/modem.cpp b/noncore/settings/networksettings/ppp/modem.cpp
index 2da9b14..d23fee4 100644
--- a/noncore/settings/networksettings/ppp/modem.cpp
+++ b/noncore/settings/networksettings/ppp/modem.cpp
@@ -975,33 +975,33 @@ void Modem::parseargs(char* buf, char** args) {
975 if (!quotes) 975 if (!quotes)
976 while ((*buf != '\0') && (*buf != '\n') && 976 while ((*buf != '\0') && (*buf != '\n') &&
977 (*buf != '\t') && (*buf != ' ')) 977 (*buf != '\t') && (*buf != ' '))
978 buf++; 978 buf++;
979 else { 979 else {
980 while ((*buf != '\0') && (*buf != quotes)) 980 while ((*buf != '\0') && (*buf != quotes))
981 buf++; 981 buf++;
982 *buf++ = '\0'; 982 *buf++ = '\0';
983 } 983 }
984 } 984 }
985 985
986 *args = 0L; 986 *args = 0L;
987} 987}
988 988
989bool Modem::execPPPDaemon(const QString & arguments) 989bool Modem::execPPPDaemon(const QString & arguments)
990{ 990{
991 if(execpppd(arguments)==0) { 991 if(execpppd(arguments)) {
992 _pppdata->setpppdRunning(true); 992 _pppdata->setpppdRunning(true);
993 return true; 993 return true;
994 } else 994 } else
995 return false; 995 return false;
996} 996}
997 997
998void Modem::killPPPDaemon() 998void Modem::killPPPDaemon()
999{ 999{
1000 _pppdata->setpppdRunning(false); 1000 _pppdata->setpppdRunning(false);
1001 killpppd(); 1001 killpppd();
1002} 1002}
1003 1003
1004int Modem::pppdExitStatus() 1004int Modem::pppdExitStatus()
1005{ 1005{
1006 return _pppdExitStatus; 1006 return _pppdExitStatus;
1007} 1007}