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/gmtime.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/time/gmtime.c') diff --git a/src/time/gmtime.c b/src/time/gmtime.c index d1660c6f..3ed5081a 100644 --- a/src/time/gmtime.c +++ b/src/time/gmtime.c @@ -1,7 +1,5 @@ -#if 0 - #include -#include "_assert.h" +#include "_safety.h" #include "_time.h" /** convert arithmetic time to broken down time **/ @@ -12,6 +10,7 @@ struct tm * gmtime(const time_t * timer) time_t seconds = 0; int days = 0; + SIGNAL_SAFE(0); ASSERT_NONNULL(timer); seconds = *timer; @@ -61,6 +60,3 @@ RETURN_FAILURE(CONSTANT(NULL)) RETURN_SUCCESS(a pointer to the converted time) STDC(1) */ - - -#endif -- cgit v1.2.1