Skip to content

Commit

Permalink
Merge pull request #6180 from mjstapp/fix_bgp_ecomm_sa
Browse files Browse the repository at this point in the history
bgpd: clean up SA warning in bgp_ecommunity.c
  • Loading branch information
rwestphal authored Apr 8, 2020
2 parents eb61cd2 + 83ac8d1 commit c446af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_ecommunity.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ static int ecommunity_lb_str(char *buf, size_t bufsz, const uint8_t *pnt)

as = (*pnt++ << 8);
as |= (*pnt++);
pnt = ptr_get_be32(pnt, &bw);
(void)ptr_get_be32(pnt, &bw);
if (bw >= ONE_GBPS_BYTES)
sprintf(bps_buf, "%.3f Gbps", (float)(bw/ONE_GBPS_BYTES));
else if (bw >= ONE_MBPS_BYTES)
Expand Down

0 comments on commit c446af5

Please sign in to comment.