From 9b6f6642ee252a9bedbe267fd85376fc9359c74f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 15:29:55 -0500 Subject: update standard and safety checks --- src/string/strerror.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/string/strerror.c') diff --git a/src/string/strerror.c b/src/string/strerror.c index bdb1df36..29742e34 100644 --- a/src/string/strerror.c +++ b/src/string/strerror.c @@ -1,8 +1,8 @@ -#if 0 - #include #include #include +#include "_safety.h" +#undef strerror # define __LONGEST_STRERR 64 /* FIXME */ @@ -12,6 +12,8 @@ char * strerror(int errnum) { static char errstr[__LONGEST_STRERR+1]; + SIGNAL_SAFE(0); + switch (errnum) { #include "_strerror.h" default: @@ -34,6 +36,3 @@ subsequent calls. /* STDC(1) */ - - -#endif -- cgit v1.2.1