From: F. Aragon Date: Fri, 14 Sep 2018 12:53:55 +0000 (+0200) Subject: bgpd: type fix X-Git-Tag: frr-7.1-dev~364^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3cf7af1d3dfad1e3250ce8fbf2f3ebd11db1cee9;p=mirror%2Ffrr.git bgpd: type fix For tracking the last state of the penalty (struct bgp_damp_info) a 'double' type was used instead of using the 'unsigned int' being used in the structure. Detected using ./configure CFLAGS=-Wfloat-equal CC=clang Signed-off-by: F. Aragon --- diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c index 071ee6b9c6..5ffab0bf4f 100644 --- a/bgpd/bgp_damp.c +++ b/bgpd/bgp_damp.c @@ -177,7 +177,7 @@ int bgp_damp_withdraw(struct bgp_info *binfo, struct bgp_node *rn, afi_t afi, { time_t t_now; struct bgp_damp_info *bdi = NULL; - double last_penalty = 0; + unsigned int last_penalty = 0; t_now = bgp_clock();