mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
add more asserts
This commit is contained in:
parent
c008f55133
commit
74afdbd8b6
1 changed files with 3 additions and 0 deletions
|
@ -1345,6 +1345,7 @@ sendMsg( CommsCtxt* comms, MsgQueueElem* elem )
|
|||
|
||||
XP_U32 gameid = gameID( comms );
|
||||
XP_ASSERT( !!comms->procs.send );
|
||||
XP_ASSERT( addr_hasType( &addr, typ ) );
|
||||
nSent = (*comms->procs.send)( elem->msg, elem->len, &addr, typ,
|
||||
gameid, comms->procs.closure );
|
||||
break;
|
||||
|
@ -2446,6 +2447,8 @@ augmentChannelAddr( CommsCtxt* comms, AddressRecord* rec, const CommsAddrRec* ad
|
|||
}
|
||||
break;
|
||||
case COMMS_CONN_SMS:
|
||||
XP_ASSERT( 0 != addr->u.sms.port );
|
||||
XP_ASSERT( '\0' != addr->u.sms.phone[0] );
|
||||
dest = &rec->addr.u.sms;
|
||||
src = &addr->u.sms;
|
||||
siz = sizeof(rec->addr.u.sms);
|
||||
|
|
Loading…
Reference in a new issue