mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 16:20:08 +00:00
pathd: replace ctime with ctime_r
No ctime - replace with ctime_r() Signed-off-by: Mark Stapp <mjs@labn.net>
This commit is contained in:
parent
8527084488
commit
1a9f9ef602
@ -1312,6 +1312,8 @@ void _format_path_hop(int ps, struct path_hop *hop)
|
|||||||
|
|
||||||
void _format_pcep_event(int ps, pcep_event *event)
|
void _format_pcep_event(int ps, pcep_event *event)
|
||||||
{
|
{
|
||||||
|
char buf[32];
|
||||||
|
|
||||||
if (event == NULL) {
|
if (event == NULL) {
|
||||||
PATHD_FORMAT("NULL\n");
|
PATHD_FORMAT("NULL\n");
|
||||||
} else {
|
} else {
|
||||||
@ -1320,7 +1322,7 @@ void _format_pcep_event(int ps, pcep_event *event)
|
|||||||
PATHD_FORMAT("%*sevent_type: %s\n", ps2, "",
|
PATHD_FORMAT("%*sevent_type: %s\n", ps2, "",
|
||||||
pcep_event_type_name(event->event_type));
|
pcep_event_type_name(event->event_type));
|
||||||
PATHD_FORMAT("%*sevent_time: %s", ps2, "",
|
PATHD_FORMAT("%*sevent_time: %s", ps2, "",
|
||||||
ctime(&event->event_time));
|
ctime_r(&event->event_time, buf));
|
||||||
if (event->session == NULL) {
|
if (event->session == NULL) {
|
||||||
PATHD_FORMAT("%*ssession: NULL\n", ps2, "");
|
PATHD_FORMAT("%*ssession: NULL\n", ps2, "");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user