Use better variable name.

This commit is contained in:
Bartosz Taudul 2017-09-14 01:06:40 +02:00
parent 10b88754d8
commit 3e1b736b34

View File

@ -87,10 +87,10 @@ void View::Worker()
}
else
{
QueueItem hdr;
if( !sock.Read( &hdr.hdr, sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close;
if( !sock.Read( ((char*)&hdr) + sizeof( QueueHeader ), QueueDataSize[hdr.hdr.idx] - sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close;
Process( hdr );
QueueItem ev;
if( !sock.Read( &ev.hdr, sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close;
if( !sock.Read( ((char*)&ev) + sizeof( QueueHeader ), QueueDataSize[ev.hdr.idx] - sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close;
Process( ev );
}
}