diff options
author | Quentin Young <qlyoung@nvidia.com> | 2020-09-23 21:37:48 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@nvidia.com> | 2021-04-28 17:43:50 +0200 |
commit | f3aa221ffd0f7a68790fad71c8d7af00a34cea22 (patch) | |
tree | c57654434d89cc41d6495cc5d1d9695ba566b295 /zebra/zebra_mroute.c | |
parent | lib, bgpd, zebra: RA interval is unsigned (diff) | |
download | frr-f3aa221ffd0f7a68790fad71c8d7af00a34cea22.tar.xz frr-f3aa221ffd0f7a68790fad71c8d7af00a34cea22.zip |
pimd, zebra: explicit cast int netlink val to uint
encoding signed int as unsigned is bad practice; since we want to do
it here lets at least be explicit about it
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'zebra/zebra_mroute.c')
-rw-r--r-- | zebra/zebra_mroute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_mroute.c b/zebra/zebra_mroute.c index 3af805558..ef0f2d892 100644 --- a/zebra/zebra_mroute.c +++ b/zebra/zebra_mroute.c @@ -65,7 +65,7 @@ stream_failure: stream_put_in_addr(s, &mroute.sg.src); stream_put_in_addr(s, &mroute.sg.grp); stream_put(s, &mroute.lastused, sizeof(mroute.lastused)); - stream_putl(s, suc); + stream_putl(s, (uint32_t)suc); stream_putw_at(s, 0, stream_get_endp(s)); zserv_send_message(client, s); |