3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-28 12:39:29 +01:00
iwd/monitor
James Prestwood c7640f8346 monitor: fix integer comparison error (clang)
Though the documentation for NLMSG_OK uses an int type for the length
the actual check is based on nlmsghdr->nlmsg_len which is a 32 bit
unsigned integer. Clang was complaining about one call in nlmon.c
because nlmsg_len was int type. Every other usage in nlmon.c uses
a uint32_t, so use that both for consistency and to fix the warning.

monitor/nlmon.c:7998:29: error: comparison of integers of different
		signs: '__u32' (aka 'unsigned int') and 'int'
		[-Werror,-Wsign-compare]
        for (nlmsg = iov.iov_base; NLMSG_OK(nlmsg, nlmsg_len);
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/linux/netlink.h💯24: note: expanded from macro 'NLMSG_OK'
                           (nlh)->nlmsg_len <= (len))
2022-06-10 14:26:39 -05:00
..
display.c monitor: Use include path from top source directory 2019-12-13 09:04:15 +01:00
display.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
iwmon.rst build: Add skeleton manual pages for all installed binaries 2019-09-22 21:57:47 +02:00
main.c monitor: Support short form of '--noies' option 2021-09-14 10:43:36 -05:00
nlmon.c monitor: fix integer comparison error (clang) 2022-06-10 14:26:39 -05:00
nlmon.h monitor: Add --noies option 2021-02-02 12:04:53 -06:00
pcap.c treewide: fix typos 2020-01-21 16:03:28 -06:00
pcap.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00