Skip to content

Commit

Permalink
Fix warning on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Mar 6, 2024
1 parent c7dc253 commit a6d94c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kernel/Communicator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,11 @@ int Communicator::reply_message_unreliable(struct CommConnEntry *entry)
.msg_name = entry->target->addr,
.msg_namelen = entry->target->addrlen,
.msg_iov = vectors,
#ifdef __linux__
.msg_iovlen = (size_t)cnt,
#else
.msg_iovlen = cnt,
#endif
};
if (sendmsg(entry->sockfd, &message, 0) < 0)
return -1;
Expand Down

0 comments on commit a6d94c0

Please sign in to comment.