summaryrefslogtreecommitdiff
path: root/src/time/ctime.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-30 15:58:39 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-30 15:58:39 -0500
commit178bc0e627d6fa3be9d18d40ba8828604ce71134 (patch)
treee96dcbaa6500450c6c7b0d2ac43d043060ab2346 /src/time/ctime.c
parentbafccb2f57ac1a1852be2d6aafe33cf02d1630c1 (diff)
update standards and safety checks
Diffstat (limited to 'src/time/ctime.c')
-rw-r--r--src/time/ctime.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/time/ctime.c b/src/time/ctime.c
index 6502c0ab..4d0402a5 100644
--- a/src/time/ctime.c
+++ b/src/time/ctime.c
@@ -1,11 +1,12 @@
-#if 0
-
#include <time.h>
+#include "_safety.h"
/** convert arithmetic time to string **/
char * ctime(const time_t * timer)
{
+ SIGNAL_SAFE(0);
+
#ifdef _POSIX_SOURCE
tzset();
#endif
@@ -22,6 +23,3 @@ FUNCTION(asctime).
RETURN_ALWAYS(a pointer to the string)
STDC(1)
*/
-
-
-#endif