include/net/netlink.h: In function ‘nlmsg_ok’: include/net/netlink.h:333:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Seen with gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2). Commit 619e803d prevents a real bug here, we are simply cleaning up a compiler warning. Signed-off-by: Chuck Lever <chuck.le...@oracle.com> --- include/net/netlink.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/net/netlink.h b/include/net/netlink.h index 785f37a..e025043 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h @@ -330,7 +330,7 @@ static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) { return (remaining >= (int) sizeof(struct nlmsghdr) && nlh->nlmsg_len >= sizeof(struct nlmsghdr) && - nlh->nlmsg_len <= remaining); + (int) nlh->nlmsg_len <= remaining); } /** @@ -687,7 +687,7 @@ static inline int nla_ok(const struct nlattr *nla, int remaining) { return remaining >= (int) sizeof(*nla) && nla->nla_len >= sizeof(*nla) && - nla->nla_len <= remaining; + (int) nla->nla_len <= remaining; } /** ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired