summaryrefslogtreecommitdiff
path: root/src/time/gmtime.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/gmtime.c
parentbafccb2f57ac1a1852be2d6aafe33cf02d1630c1 (diff)
update standards and safety checks
Diffstat (limited to 'src/time/gmtime.c')
-rw-r--r--src/time/gmtime.c8
1 files changed, 2 insertions, 6 deletions
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 <time.h>
-#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