mirror of
https://github.com/apache/nuttx.git
synced 2026-08-26 20:00:42 +00:00
sim: init events field when send ack/dack
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
cc7dc89c64
commit
4ea43f2df2
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ static int usrsock_send_ack(struct usrsock_s *usrsock,
|
|||
|
||||
ack.head.msgid = USRSOCK_MESSAGE_RESPONSE_ACK;
|
||||
ack.head.flags = (result == -EINPROGRESS);
|
||||
ack.head.events = 0;
|
||||
|
||||
ack.xid = xid;
|
||||
ack.result = result;
|
||||
|
|
@ -93,6 +94,7 @@ static int usrsock_send_dack(struct usrsock_s *usrsock,
|
|||
{
|
||||
ack->reqack.head.msgid = USRSOCK_MESSAGE_RESPONSE_DATA_ACK;
|
||||
ack->reqack.head.flags = 0;
|
||||
ack->reqack.head.events = 0;
|
||||
|
||||
ack->reqack.xid = xid;
|
||||
ack->reqack.result = result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue