diff options
| author | Mark Stapp <mjs@labn.net> | 2023-09-19 16:24:07 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@labn.net> | 2023-09-19 16:25:01 -0400 |
| commit | 5b4610fa59fa393f07f962f04189b4032b681c7b (patch) | |
| tree | 871d3d38a678297a91308fbccea08d902cfa8c94 /tests | |
| parent | 1a9f9ef6022c2c6a285ffc33b66ea1b9935f19b6 (diff) | |
tests: replace ctime with ctime_r
Replace ctime with ctime_r in bgp test.
Signed-off-by: Mark Stapp <mjs@labn.net>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bgpd/test_mpath.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bgpd/test_mpath.c b/tests/bgpd/test_mpath.c index bc2c1e8a44..ebbe3ac3e2 100644 --- a/tests/bgpd/test_mpath.c +++ b/tests/bgpd/test_mpath.c @@ -467,9 +467,10 @@ int main(void) { int pass_count, fail_count; time_t cur_time; + char buf[32]; time(&cur_time); - printf("BGP Multipath Tests Run at %s", ctime(&cur_time)); + printf("BGP Multipath Tests Run at %s", ctime_r(&cur_time, buf)); if (global_test_init() != 0) { printf("Global init failed. Terminating.\n"); exit(1); |
