diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2023-09-20 13:32:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 13:32:51 +0200 |
commit | 4e5627fb20172504f6a007b3002b2f7ff6895436 (patch) | |
tree | 4e1b12c4510086d639ebeb0c3413f703e04907a1 /bgpd/bgp_mplsvpn.c | |
parent | Merge pull request #14440 from fdumontet6WIND/fix_oid_bgp4v2 (diff) | |
parent | tests: replace ctime with ctime_r (diff) | |
download | frr-4e5627fb20172504f6a007b3002b2f7ff6895436.tar.xz frr-4e5627fb20172504f6a007b3002b2f7ff6895436.zip |
Merge pull request #14442 from mjstapp/fix_no_ctime
bgpd, pathd: replace ctime() with ctime_r()
Diffstat (limited to 'bgpd/bgp_mplsvpn.c')
-rw-r--r-- | bgpd/bgp_mplsvpn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index 00930dea6..3a04514c0 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c @@ -4205,6 +4205,7 @@ static void show_bgp_mplsvpn_nh_label_bind_internal(struct vty *vty, struct bgp *bgp_path; struct bgp_table *table; time_t tbuf; + char buf[32]; vty_out(vty, "Current BGP mpls-vpn nexthop label bind cache, %s\n", bgp->name_pretty); @@ -4222,7 +4223,7 @@ static void show_bgp_mplsvpn_nh_label_bind_internal(struct vty *vty, ifindex2ifname(iter->nh->ifindex, iter->nh->vrf_id)); tbuf = time(NULL) - (monotime(NULL) - iter->last_update); - vty_out(vty, " Last update: %s", ctime(&tbuf)); + vty_out(vty, " Last update: %s", ctime_r(&tbuf, buf)); if (!detail) continue; vty_out(vty, " Paths:\n"); |