mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 08:56:13 +00:00
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:
parent
1a9f9ef602
commit
5b4610fa59
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user