Skip to content

Commit

Permalink
Merge pull request #32 from oviano/fixed_signed_unsigned_comparison
Browse files Browse the repository at this point in the history
This fixes a warning seen on certain platforms/compiler versions
  • Loading branch information
paullouisageneau authored Aug 28, 2024
2 parents 769ba44 + 3a349ef commit f1bae8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ int net_get_default_gateway(int family, addr_record_t *record) {
goto error;
}

if (snl_len < sizeof(snl) || snl.nl_pid != 0) {
if (snl_len < (socklen_t)sizeof(snl) || snl.nl_pid != 0) {
PLUM_LOG_WARN("Netlink received datagram not from kernel");
continue;
}
Expand Down

0 comments on commit f1bae8f

Please sign in to comment.