diff options
| author | Quentin Young <qlyoung@nvidia.com> | 2020-09-23 15:37:48 -0400 | 
|---|---|---|
| committer | Quentin Young <qlyoung@nvidia.com> | 2021-04-28 11:43:50 -0400 | 
| commit | f3aa221ffd0f7a68790fad71c8d7af00a34cea22 (patch) | |
| tree | c57654434d89cc41d6495cc5d1d9695ba566b295 /zebra/zebra_mroute.c | |
| parent | bbad027684d1df7ebf30e7d8572683aeeeac4024 (diff) | |
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 3af805558d..ef0f2d8924 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);  | 
