[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/runtime/kioslave/sftp
From:       İsmail Dönmez <ismail () kde ! org>
Date:       2008-01-21 23:27:30
Message-ID: 1200958050.503996.20430.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 764494 by cartman:

Fix porting error

 M  +2 -2      process.cpp  


--- trunk/KDE/kdebase/runtime/kioslave/sftp/process.cpp #764493:764494
@@ -420,13 +420,13 @@
     // Disable OPOST processing. Otherwise, '\n' are (on Linux at least)
     // translated to '\r\n'.
     struct ::termios tio;
-    if (!m_pPTY->tcGetAttr(&tio) < 0)
+    if (!m_pPTY->tcGetAttr(&tio))
     {
         kError(PTYPROC) << k_lineinfo << "tcgetattr(): " << perror << "\n";
         return -1;
     }
     tio.c_oflag &= ~OPOST;
-    if (!m_pPTY->tcSetAttr(&tio) < 0)
+    if (!m_pPTY->tcSetAttr(&tio))
     {
         kError(PTYPROC) << k_lineinfo << "tcsetattr(): " << perror << "\n";
         return -1;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic