summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/comm/keypebble/krfbconnection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/comm/keypebble/krfbconnection.cpp b/noncore/comm/keypebble/krfbconnection.cpp
index c413186..c51f18a 100644
--- a/noncore/comm/keypebble/krfbconnection.cpp
+++ b/noncore/comm/keypebble/krfbconnection.cpp
@@ -111,40 +111,40 @@ void KRFBConnection::gotRFBConnection()
connect( decoder_, SIGNAL( status( const QString & ) ),
this, SIGNAL( statusChanged( const QString & ) ) );
emit loggedIn();
decoder_->start();
updater = new QTimer;
connect( updater, SIGNAL( timeout() ), SLOT( updateTimer() ) );
updater->start( options_->updateRate );
}
-void KRFBConnection::gotSocketError( int errno )
+void KRFBConnection::gotSocketError( int err )
{
currentState_ = Error;
// Do some error handling stuff
- qWarning( "KRFBConnection: Socket error %d", errno );
+ qWarning( "KRFBConnection: Socket error %d", err );
static QString refused = tr( "Connection Refused" );
static QString host = tr( "Host not found" );
static QString read = tr( "Read Error: QSocket reported an error reading\n"
"data, the remote host has probably dropped the\n"
"connection." );
static QString confused = tr( "QSocket reported an invalid error code" );
QString msg;
- switch ( errno ) {
+ switch ( err ) {
case QSocket::ErrConnectionRefused:
msg = refused;
break;
case QSocket::ErrHostNotFound:
msg = host;
break;
case QSocket::ErrSocketRead:
msg = read;
break;
default:
msg = confused;
};