Skip to content

Commit

Permalink
Fix sign-comparison compiler warning on i386 builds. (#6070)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskirby committed Mar 29, 2023
1 parent 3ed76b0 commit 0e775e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apps/vpn/platforms/linux/daemon/wireguardutilslinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ bool WireguardUtilsLinux::rtmSendRule(int action, int flags, int addrfamily) {
nlmsg_append_attr32(nlmsg, sizeof(buf), FRA_TABLE, WG_ROUTE_TABLE);
ssize_t result = sendto(m_nlsock, buf, nlmsg->nlmsg_len, 0,
(struct sockaddr*)&nladdr, sizeof(nladdr));
if (result != nlmsg->nlmsg_len) {
if (result != static_cast<ssize_t>(nlmsg->nlmsg_len)) {
return false;
}

Expand All @@ -597,7 +597,7 @@ bool WireguardUtilsLinux::rtmSendRule(int action, int flags, int addrfamily) {
nlmsg_append_attr32(nlmsg, sizeof(buf), FRA_SUPPRESS_PREFIXLEN, 0);
result = sendto(m_nlsock, buf, nlmsg->nlmsg_len, 0, (struct sockaddr*)&nladdr,
sizeof(nladdr));
if (result != nlmsg->nlmsg_len) {
if (result != static_cast<ssize_t>(nlmsg->nlmsg_len)) {
return false;
}

Expand Down Expand Up @@ -647,7 +647,7 @@ bool WireguardUtilsLinux::rtmSendExclude(int action, int flags,

ssize_t result = sendto(m_nlsock, buf, nlmsg->nlmsg_len, 0,
(struct sockaddr*)&nladdr, sizeof(nladdr));
if (result != nlmsg->nlmsg_len) {
if (result != static_cast<ssize_t>(nlmsg->nlmsg_len)) {
return false;
}

Expand Down

1 comment on commit 0e775e7

@firefoxci-taskcluster
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh oh! Looks like an error! Details

HttpError: invalid json response body at https://api.github.com/repos/mozilla-mobile/mozilla-vpn-client/check-runs/12370256998 reason: Unexpected end of JSON input

Please sign in to comment.