diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 15:58:39 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 15:58:39 -0500 |
| commit | 178bc0e627d6fa3be9d18d40ba8828604ce71134 (patch) | |
| tree | e96dcbaa6500450c6c7b0d2ac43d043060ab2346 /src/time/localtime.c | |
| parent | bafccb2f57ac1a1852be2d6aafe33cf02d1630c1 (diff) | |
update standards and safety checks
Diffstat (limited to 'src/time/localtime.c')
| -rw-r--r-- | src/time/localtime.c | 9 |
1 files changed, 3 insertions, 6 deletions
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 <time.h> -#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 |
