Skip to content

Commit

Permalink
bgpd: Fix compilation warning for rfapi code
Browse files Browse the repository at this point in the history
bgpd/rfapi/rfapi_rib.c:1800:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         prefix_time = (time_t)trn->info;

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
  • Loading branch information
ton31337 committed Nov 18, 2024
1 parent 724624a commit 06987ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/rfapi/rfapi_rib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ int rfapiRibFTDFilterRecentPrefix(
* check this NVE's timestamp for this prefix
*/
trn = agg_node_get(rfd->rsp_times[afi], p); /* locks trn */
prefix_time = (time_t)trn->info;
prefix_time = *(time_t *)trn->info;
if (agg_node_get_lock_count(trn) > 1)
agg_unlock_node(trn);

Expand Down

0 comments on commit 06987ee

Please sign in to comment.