summaryrefslogtreecommitdiff
path: root/noncore/comm/keypebble/krfbconnection.cpp
authordwmw2 <dwmw2>2002-05-09 17:30:42 (UTC)
committer dwmw2 <dwmw2>2002-05-09 17:30:42 (UTC)
commit37b512ee81aacdc53c4cf5de18a2eb7c0819086d (patch) (unidiff)
tree4125c12092cf9036c07e1d06710ef08a7bafdc5d /noncore/comm/keypebble/krfbconnection.cpp
parentb9d7463dde0158b06ccbdc014ef20aa8569454a5 (diff)
downloadopie-37b512ee81aacdc53c4cf5de18a2eb7c0819086d.zip
opie-37b512ee81aacdc53c4cf5de18a2eb7c0819086d.tar.gz
opie-37b512ee81aacdc53c4cf5de18a2eb7c0819086d.tar.bz2
don't use errno for variable names
Diffstat (limited to 'noncore/comm/keypebble/krfbconnection.cpp') (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
@@ -117,28 +117,28 @@ void KRFBConnection::gotRFBConnection()
117 117
118 updater = new QTimer; 118 updater = new QTimer;
119 connect( updater, SIGNAL( timeout() ), SLOT( updateTimer() ) ); 119 connect( updater, SIGNAL( timeout() ), SLOT( updateTimer() ) );
120 updater->start( options_->updateRate ); 120 updater->start( options_->updateRate );
121} 121}
122 122
123void KRFBConnection::gotSocketError( int errno ) 123void KRFBConnection::gotSocketError( int err )
124{ 124{
125 currentState_ = Error; 125 currentState_ = Error;
126 126
127 // Do some error handling stuff 127 // Do some error handling stuff
128 qWarning( "KRFBConnection: Socket error %d", errno ); 128 qWarning( "KRFBConnection: Socket error %d", err );
129 129
130 static QString refused = tr( "Connection Refused" ); 130 static QString refused = tr( "Connection Refused" );
131 static QString host = tr( "Host not found" ); 131 static QString host = tr( "Host not found" );
132 static QString read = tr( "Read Error: QSocket reported an error reading\n" 132 static QString read = tr( "Read Error: QSocket reported an error reading\n"
133 "data, the remote host has probably dropped the\n" 133 "data, the remote host has probably dropped the\n"
134 "connection." ); 134 "connection." );
135 static QString confused = tr( "QSocket reported an invalid error code" ); 135 static QString confused = tr( "QSocket reported an invalid error code" );
136 136
137 QString msg; 137 QString msg;
138 switch ( errno ) { 138 switch ( err ) {
139 case QSocket::ErrConnectionRefused: 139 case QSocket::ErrConnectionRefused:
140 msg = refused; 140 msg = refused;
141 break; 141 break;
142 case QSocket::ErrHostNotFound: 142 case QSocket::ErrHostNotFound:
143 msg = host; 143 msg = host;
144 break; 144 break;