diff mbox series

[2/2] frame-xchg: use int length for NLMSG_* macros

Message ID 20221013161424.505633-2-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series [1/2] monitor: use int length for NLMSG_NEXT | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood Oct. 13, 2022, 4:14 p.m. UTC
The macro expects an integer type so use that to avoid any
unintended behavior as seen in iwmon.
---
 src/frame-xchg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/frame-xchg.c b/src/frame-xchg.c
index 158befd0..142bd80b 100644
--- a/src/frame-xchg.c
+++ b/src/frame-xchg.c
@@ -316,7 +316,7 @@  static bool frame_watch_group_io_read(struct l_io *io, void *user_data)
 	unsigned char control[32];
 	ssize_t bytes_read;
 	struct nlmsghdr *nlmsg;
-	size_t nlmsg_len;
+	int nlmsg_len;
 	uint32_t nlmsg_group = 0;
 
 	memset(&iov, 0, sizeof(iov));