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.h | |
| 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.h')
| -rw-r--r-- | isisd/isis_adjacency.h | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_adjacency.h b/isisd/isis_adjacency.h index b7fab7ae1e..4aa553e303 100644 --- a/isisd/isis_adjacency.h +++ b/isisd/isis_adjacency.h @@ -96,8 +96,8 @@ struct isis_adjacency {  	int level;			/* level (1 or 2) */  	enum isis_system_type sys_type; /* neighbourSystemType */  	uint16_t hold_time;		/* entryRemainingTime */ -	uint32_t last_upd; -	uint32_t last_flap; /* last time the adj flapped */ +	time_t last_upd; +	time_t last_flap; /* last time the adj flapped */  	enum isis_threeway_state threeway_state;  	uint32_t ext_circuit_id;  	int flaps;		      /* number of adjacency flaps  */  | 
