mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
cleanup -- no behavior change
This commit is contained in:
parent
ce6537f2a9
commit
d9b1fb4df6
1 changed files with 5 additions and 6 deletions
|
@ -677,18 +677,17 @@ comms_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream,
|
|||
RoleChangeProc rcp, void* rcClosure,
|
||||
XP_U16 forceChannel )
|
||||
{
|
||||
XP_U16 nPlayersHere, nPlayersTotal;
|
||||
AddressRecord** prevsAddrNext;
|
||||
MsgQueueElem** prevsQueueNext;
|
||||
XP_U16 version = stream_getVersion( stream );
|
||||
CommsAddrRec addr = {0};
|
||||
|
||||
XP_U8 flags = stream_getU8( stream );
|
||||
if ( version < STREAM_VERS_GICREATED ) {
|
||||
flags = 0;
|
||||
}
|
||||
|
||||
CommsAddrRec addr = {0};
|
||||
addrFromStream( &addr, stream );
|
||||
|
||||
XP_U16 nPlayersHere, nPlayersTotal;
|
||||
if ( version >= STREAM_VERS_DEVIDS
|
||||
|| addr_hasType( &addr, COMMS_CONN_RELAY ) ) {
|
||||
nPlayersHere = (XP_U16)stream_getBits( stream, 4 );
|
||||
|
@ -730,7 +729,7 @@ comms_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream,
|
|||
comms->queueLen = stream_getU8( stream );
|
||||
|
||||
XP_U16 nAddrRecs = stream_getU8( stream );
|
||||
prevsAddrNext = &comms->recs;
|
||||
AddressRecord** prevsAddrNext = &comms->recs;
|
||||
for ( int ii = 0; ii < nAddrRecs; ++ii ) {
|
||||
AddressRecord* rec = (AddressRecord*)XP_CALLOC( mpool, sizeof(*rec));
|
||||
|
||||
|
@ -760,7 +759,7 @@ comms_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream,
|
|||
prevsAddrNext = &rec->next;
|
||||
}
|
||||
|
||||
prevsQueueNext = &comms->msgQueueHead;
|
||||
MsgQueueElem** prevsQueueNext = &comms->msgQueueHead;
|
||||
for ( int ii = 0; ii < comms->queueLen; ++ii ) {
|
||||
MsgQueueElem* msg = (MsgQueueElem*)XP_CALLOC( mpool, sizeof(*msg) );
|
||||
|
||||
|
|
Loading…
Reference in a new issue