diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2024-04-23 14:05:16 +0200 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2024-04-26 17:11:53 +0200 |
| commit | bb46027596524707480a423bd6ef63bad0a8ce0e (patch) | |
| tree | 772b6258172d3e506b09d91a101e50ec33403e30 /lib/if.c | |
| parent | efbf2345107202e8315507f4c8da8c39305174db (diff) | |
zebra: fix fpm_listener compilation
I don't know why it appears only now.
> ../sdist/zebra/fpm_listener.c:420:8: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
> if (!RTNH_OK(rtnh, len)) {
> ^~~~~~~~~~~~~~~~~~
> ../sdist/include/linux/rtnetlink.h:437:31: note: expanded from macro 'RTNH_OK'
> ((int)(rtnh)->rtnh_len) <= (len))
len is set with RTA_PAYLOAD and should be an integer.
> len = RTA_PAYLOAD(mpath_rtattr);
> #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'lib/if.c')
0 files changed, 0 insertions, 0 deletions
