From 4d626d657670fc86a7e062216a0f1ed8cfd6b53b Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Tue, 22 Aug 2017 16:10:40 -0700 Subject: [PATCH] monitor: Fix casting error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix for the cros-compilation with Chromium OS’s toolchain that uses GCC 4.9 --- monitor/nlmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index a1afc41a..eba6425e 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -4858,7 +4858,7 @@ static bool nlmon_receive(struct l_io *io, void *user_data) } } - for (nlmsg = iov.iov_base; NLMSG_OK(nlmsg, bytes_read); + for (nlmsg = iov.iov_base; NLMSG_OK(nlmsg, (uint32_t) bytes_read); nlmsg = NLMSG_NEXT(nlmsg, bytes_read)) { switch (proto_type) { case NETLINK_ROUTE: