From 37b512ee81aacdc53c4cf5de18a2eb7c0819086d Mon Sep 17 00:00:00 2001 From: dwmw2 Date: Thu, 09 May 2002 17:30:42 +0000 Subject: don't use errno for variable names --- 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 @@ -120,12 +120,12 @@ void KRFBConnection::gotRFBConnection() 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" ); @@ -135,7 +135,7 @@ void KRFBConnection::gotSocketError( int errno ) static QString confused = tr( "QSocket reported an invalid error code" ); QString msg; - switch ( errno ) { + switch ( err ) { case QSocket::ErrConnectionRefused: msg = refused; break; -- cgit v0.9.0.2