From 3cf7af1d3dfad1e3250ce8fbf2f3ebd11db1cee9 Mon Sep 17 00:00:00 2001 From: "F. Aragon" Date: Fri, 14 Sep 2018 14:53:55 +0200 Subject: [PATCH] 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 --- bgpd/bgp_damp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5