Skip to content

Commit

Permalink
sim: init events field when send ack/dack
Browse files Browse the repository at this point in the history
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
  • Loading branch information
zhhyu7 authored and anchao committed Jan 29, 2023
1 parent cc7dc89 commit 4ea43f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sim/src/sim/sim_usrsock.c
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 4ea43f2

Please sign in to comment.