diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-03 12:40:40 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-11 14:58:35 +0300 | 
| commit | ac716cdffdc4abc5e51e4cfe723952f025c497b4 (patch) | |
| tree | 7964df328c947e15a7fcafb6bf33f96380e90a50 /isisd/isis_adjacency.c | |
| parent | 0ac8055ca1a9662d6e8197dff9a91759331991e7 (diff) | |
isisd: use time_t for last update and last flap
These variables are only assigned with time() which returns time_t.
This should also fix occasional CI build failures because of comparisons
of signed and unsigned integers.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'isisd/isis_adjacency.c')
| -rw-r--r-- | isisd/isis_adjacency.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/isisd/isis_adjacency.c b/isisd/isis_adjacency.c index ffda0f8643..f5e8a790bf 100644 --- a/isisd/isis_adjacency.c +++ b/isisd/isis_adjacency.c @@ -480,8 +480,7 @@ void isis_adj_print_vty(struct isis_adjacency *adj, struct vty *vty,  		vty_out(vty, "%-13s", adj_state2string(adj->adj_state));  		now = time(NULL);  		if (adj->last_upd) { -			if (adj->last_upd + adj->hold_time -			    < (unsigned long long)now) +			if (adj->last_upd + adj->hold_time < now)  				vty_out(vty, " Expiring");  			else  				vty_out(vty, " %-9llu", @@ -508,8 +507,7 @@ void isis_adj_print_vty(struct isis_adjacency *adj, struct vty *vty,  		vty_out(vty, ", State: %s", adj_state2string(adj->adj_state));  		now = time(NULL);  		if (adj->last_upd) { -			if (adj->last_upd + adj->hold_time -			    < (unsigned long long)now) +			if (adj->last_upd + adj->hold_time < now)  				vty_out(vty, " Expiring");  			else  				vty_out(vty, ", Expires in %s",  | 
