From: Chuck L. <chu...@or...> - 2012-08-30 21:04:08
|
include/net/rtnetlink.h: In function ‘rtnl_msg_family’: include/net/rtnetlink.h:22:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Seen with gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2). Signed-off-by: Chuck Lever <chu...@or...> --- include/net/netlink.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/net/netlink.h b/include/net/netlink.h index 27c7ab7..0c46179 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h @@ -285,7 +285,7 @@ static inline void *nlmsg_data(const struct nlmsghdr *nlh) * nlmsg_len - length of message payload * @nlh: netlink message header */ -static inline int nlmsg_len(const struct nlmsghdr *nlh) +static inline size_t nlmsg_len(const struct nlmsghdr *nlh) { return nlh->nlmsg_len - NLMSG_HDRLEN; } |