summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-08-19 08:27:54 (GMT)
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-08-19 08:28:50 (GMT)
commit3ae4ebe921a318ba4474a6b0b9d76b1795d0719d (patch)
tree2572f795ef8d5ba58bac42693e7179c1a86ab346 /src/network
parente0d00380975ffc5b0441927d88f6e966695b644c (diff)
downloadQt-3ae4ebe921a318ba4474a6b0b9d76b1795d0719d.zip
Qt-3ae4ebe921a318ba4474a6b0b9d76b1795d0719d.tar.gz
Qt-3ae4ebe921a318ba4474a6b0b9d76b1795d0719d.tar.bz2
Changig variable name from misleading
fdexec to proper fdexception.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/socket/qnativesocketengine_unix.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp
index df9b7b4..1c77a37 100644
--- a/src/network/socket/qnativesocketengine_unix.cpp
+++ b/src/network/socket/qnativesocketengine_unix.cpp
@@ -897,9 +897,9 @@ int QNativeSocketEnginePrivate::nativeSelect(int timeout, bool selectForRead) co
tv.tv_usec = (timeout % 1000) * 1000;
#ifdef Q_OS_SYMBIAN
- fd_set fdexec;
- FD_ZERO(&fdexec);
- FD_SET(socketDescriptor, &fdexec);
+ fd_set fdexception;
+ FD_ZERO(&fdexception);
+ FD_SET(socketDescriptor, &fdexception);
#endif
int retval;
@@ -907,13 +907,13 @@ int QNativeSocketEnginePrivate::nativeSelect(int timeout, bool selectForRead) co
#ifndef Q_OS_SYMBIAN
retval = qt_safe_select(socketDescriptor + 1, &fds, 0, 0, timeout < 0 ? 0 : &tv);
#else
- retval = qt_safe_select(socketDescriptor + 1, &fds, 0, &fdexec, timeout < 0 ? 0 : &tv);
+ retval = qt_safe_select(socketDescriptor + 1, &fds, 0, &fdexception, timeout < 0 ? 0 : &tv);
#endif
else
#ifndef Q_OS_SYMBIAN
retval = qt_safe_select(socketDescriptor + 1, 0, &fds, 0, timeout < 0 ? 0 : &tv);
#else
- retval = qt_safe_select(socketDescriptor + 1, 0, &fds, &fdexec, timeout < 0 ? 0 : &tv);
+ retval = qt_safe_select(socketDescriptor + 1, 0, &fds, &fdexception, timeout < 0 ? 0 : &tv);
#endif
@@ -923,10 +923,10 @@ int QNativeSocketEnginePrivate::nativeSelect(int timeout, bool selectForRead) co
if(retval < 0) {
qWarning("nativeSelect(....) returned < 0 for socket %d", socketDescriptor);
}
- selectForExec = FD_ISSET(socketDescriptor, &fdexec);
+ selectForExec = FD_ISSET(socketDescriptor, &fdexception);
}
if(selectForExec) {
- qWarning("nativeSelect (selectForRead %d, retVal %d, errno %d) Unexpected expectfds ready in fd %d",
+ qWarning("nativeSelect (selectForRead %d, retVal %d, errno %d) Unexpected exception for fd %d",
selectForRead, retval, errno, socketDescriptor);
}
#endif
@@ -948,9 +948,9 @@ int QNativeSocketEnginePrivate::nativeSelect(int timeout, bool checkRead, bool c
FD_SET(socketDescriptor, &fdwrite);
#ifdef Q_OS_SYMBIAN
- fd_set fdexec;
- FD_ZERO(&fdexec);
- FD_SET(socketDescriptor, &fdexec);
+ fd_set fdexception;
+ FD_ZERO(&fdexception);
+ FD_SET(socketDescriptor, &fdexception);
#endif
struct timeval tv;
@@ -965,13 +965,13 @@ int QNativeSocketEnginePrivate::nativeSelect(int timeout, bool checkRead, bool c
timer.start();
do {
- ret = qt_safe_select(socketDescriptor + 1, &fdread, &fdwrite, &fdexec, timeout < 0 ? 0 : &tv);
+ ret = qt_safe_select(socketDescriptor + 1, &fdread, &fdwrite, &fdexception, timeout < 0 ? 0 : &tv);
bool selectForExec = false;
if(ret != 0) {
if(ret < 0) {
qWarning("nativeSelect(....) returned < 0 for socket %d", socketDescriptor);
}
- selectForExec = FD_ISSET(socketDescriptor, &fdexec);
+ selectForExec = FD_ISSET(socketDescriptor, &fdexception);
}
if(selectForExec) {
qWarning("nativeSelect (checkRead %d, checkWrite %d, ret %d, errno %d): Unexpected expectfds ready in fd %d",