From kde-commits Mon Dec 09 01:50:27 2002 From: Dirk Mueller Date: Mon, 09 Dec 2002 01:50:27 +0000 To: kde-commits Subject: kdenonbeta/keystone X-MARC-Message: https://marc.info/?l=kde-commits&m=103939872912061 CVS commit by mueller: naming a variable errno is NOT a good idea! M +3 -3 krfbconnection.cpp 1.6 --- kdenonbeta/keystone/krfbconnection.cpp #1.5:1.6 @@ -123,10 +123,10 @@ void KRFBConnection::gotRFBConnection() } -void KRFBConnection::gotSocketError( int errno ) +void KRFBConnection::gotSocketError( int errorno ) { currentState_ = Error; // Do some error handling stuff - qWarning( "KRFBConnection: Socket error %d", errno ); + qWarning( "KRFBConnection: Socket error %d", errorno ); static QString refused = i18n( "Connection Refused" ); @@ -138,5 +138,5 @@ void KRFBConnection::gotSocketError( int QString msg; - switch ( errno ) { + switch ( errorno ) { case QSocket::ErrConnectionRefused: msg = refused;