Analysis workflow, check for ctime define.

This commit is contained in:
W.C.A. Wijngaards
2021-06-25 14:37:53 +02:00
parent e45e73768f
commit 770a54600c
4 changed files with 8 additions and 7 deletions
-7
View File
@@ -51,9 +51,6 @@
#include "testcode/testpkts.h"
#include "testcode/fake_event.h"
#include "sldns/str2wire.h"
#ifdef ctime_r
#undef ctime_r
#endif
/** max length of lines in file */
#define MAX_LINE_LEN 10240
@@ -690,11 +687,7 @@ do_macro_ctime(char* arg)
log_err("macro ctime: expected number, not: %s", arg);
return NULL;
}
#ifndef HAVE_CTIME_R
unbound_ctime_r(&tt, buf);
#else
ctime_r(&tt, buf);
#endif
strip_end_white(buf);
return strdup(buf);
}