Author | Jamozed <[email protected]> |
Date | 2021-11-27 04:30:35 |
Commit | b92cde2948d13eac499a066cc829e1f52fd14b2f |
Parent | 672d2eee9555800c6f50c271ca645a51b79c132c |
Update util/error headers
Diffstat
M | src/util/error.c | | | 4 | ++-- |
M | src/util/error.h | | | 11 | ++++++----- |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/util/error.c b/src/util/error.c index d6fdfdd..0e306e9 100644 --- a/src/util/error.c +++ b/src/util/error.c @@ -1,5 +1,5 @@ -// util/error.c -// Error utility source file for ESH +// util/error.h, version 1.1.1 +// Error source file from libutil // Copyright (C) 2020, Jakob Wakeling // All rights reserved. diff --git a/src/util/error.h b/src/util/error.h index 44461a3..794e5c3 100644 --- a/src/util/error.h +++ b/src/util/error.h @@ -1,5 +1,5 @@ -// util/error.h -// Error utility header file for ESH +// util/error.h, version 1.1.1 +// Error header file from libutil // Copyright (C) 2020, Jakob Wakeling // All rights reserved. @@ -30,12 +30,13 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. */ -#ifndef ESH_UTIL_ERROR_H_38W06M3W -#define ESH_UTIL_ERROR_H_38W06M3W +#ifndef UTIL_ERROR_H_38W06M3W +#define UTIL_ERROR_H_38W06M3W #include <errno.h> #include <stdbool.h> #include <stdnoreturn.h> +#include <string.h> /* Warn and then return status */ #define WARN_R(status, format, ...) do { \ @@ -83,4 +84,4 @@ extern void alert(const char *format, ...); /* Shorthand for strerror(errno). DEPRECIATED, use the SERR macro. */ extern char *serr(void); -#endif // OMKOV_LIB_ERROR_H_38W06M3W +#endif // UTIL_ERROR_H_38W06M3W