From 178bc0e627d6fa3be9d18d40ba8828604ce71134 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 15:58:39 -0500 Subject: update standards and safety checks --- src/time/localtime.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/time/localtime.c') diff --git a/src/time/localtime.c b/src/time/localtime.c index 310638c6..afcc35db 100644 --- a/src/time/localtime.c +++ b/src/time/localtime.c @@ -1,13 +1,13 @@ -#if 0 - #include -#include "_assert.h" +#include "_safety.h" /** convert arithmetic time to broken down time **/ struct tm * localtime(const time_t * timer) { static struct tm tm = {0}; + + SIGNAL_SAFE(0); ASSERT_NONNULL(timer); #ifdef _POSIX_SOURCE @@ -28,6 +28,3 @@ converts the locale time at ARGUMENT(timer) to a filled out STRUCTDEF(tm). RETURN_ALWAYS(a pointer to the converted object) STDC(1) */ - - -#endif -- cgit v1.2.1