tests: replace ctime with ctime_r

Replace ctime with ctime_r in bgp test.

Signed-off-by: Mark Stapp <mjs@labn.net>
This commit is contained in:
Mark Stapp 2023-09-19 16:24:07 -04:00
parent 1a9f9ef602
commit 5b4610fa59

View File

@ -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);