Commit b9f06d43 authored by hjk's avatar hjk
Browse files

debugger: minor whitespace

parent 510bd6dc
...@@ -753,12 +753,12 @@ int UnixReaderThread::tryRead() ...@@ -753,12 +753,12 @@ int UnixReaderThread::tryRead()
if (FD_ISSET(m_terminatePipeFileDescriptors[0], &tempReadSet) if (FD_ISSET(m_terminatePipeFileDescriptors[0], &tempReadSet)
|| FD_ISSET(m_terminatePipeFileDescriptors[0], &tempExceptionSet)) || FD_ISSET(m_terminatePipeFileDescriptors[0], &tempExceptionSet))
return 1; return 1;
// determine number of pending bytes and read // determine number of pending bytes and read
int numBytes; int numBytes;
if (ioctl(fileDescriptor, FIONREAD, &numBytes) < 0) { if (ioctl(fileDescriptor, FIONREAD, &numBytes) < 0) {
emit error(msgUnixCallFailedErrno("ioctl", errno)); emit error(msgUnixCallFailedErrno("ioctl", errno));
return -1; return -1;
} }
m_context->mutex.lock(); m_context->mutex.lock();
const QByteArray data = m_context->file.read(numBytes); const QByteArray data = m_context->file.read(numBytes);
...@@ -770,7 +770,8 @@ int UnixReaderThread::tryRead() ...@@ -770,7 +770,8 @@ int UnixReaderThread::tryRead()
void UnixReaderThread::run() void UnixReaderThread::run()
{ {
// Read loop // Read loop
while ( tryRead() == 0) ; while (tryRead() == 0)
;
} }
void UnixReaderThread::terminate() void UnixReaderThread::terminate()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment