summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess_unix.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-04-17 15:04:23 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-04-17 15:04:23 (GMT)
commitc29533ab2094c38bb63d50dd6306cfe6ccacc868 (patch)
treee539b2062c870dd431f522d1d1e0677008eaa717 /src/corelib/io/qprocess_unix.cpp
parentf15b8a83e2e51955776a3f07cb85ebfc342dd8ef (diff)
parent198efeb27e5c2a87d0a2bb6859446cb1faf45ed8 (diff)
downloadQt-c29533ab2094c38bb63d50dd6306cfe6ccacc868.zip
Qt-c29533ab2094c38bb63d50dd6306cfe6ccacc868.tar.gz
Qt-c29533ab2094c38bb63d50dd6306cfe6ccacc868.tar.bz2
Merge branch 'kinetic-animations' into kinetic-statemachine
Diffstat (limited to 'src/corelib/io/qprocess_unix.cpp')
-rw-r--r--src/corelib/io/qprocess_unix.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp
index 37173c8..33d4a47 100644
--- a/src/corelib/io/qprocess_unix.cpp
+++ b/src/corelib/io/qprocess_unix.cpp
@@ -850,10 +850,10 @@ bool QProcessPrivate::processStarted()
qint64 QProcessPrivate::bytesAvailableFromStdout() const
{
- size_t nbytes = 0;
+ int nbytes = 0;
qint64 available = 0;
if (::ioctl(stdoutChannel.pipe[0], FIONREAD, (char *) &nbytes) >= 0)
- available = (qint64) *((int *) &nbytes);
+ available = (qint64) nbytes;
#if defined (QPROCESS_DEBUG)
qDebug("QProcessPrivate::bytesAvailableFromStdout() == %lld", available);
#endif
@@ -862,10 +862,10 @@ qint64 QProcessPrivate::bytesAvailableFromStdout() const
qint64 QProcessPrivate::bytesAvailableFromStderr() const
{
- size_t nbytes = 0;
+ int nbytes = 0;
qint64 available = 0;
if (::ioctl(stderrChannel.pipe[0], FIONREAD, (char *) &nbytes) >= 0)
- available = (qint64) *((int *) &nbytes);
+ available = (qint64) nbytes;
#if defined (QPROCESS_DEBUG)
qDebug("QProcessPrivate::bytesAvailableFromStderr() == %lld", available);
#endif