From 151e7486457a280ef5770bec5004634165f86a53 Mon Sep 17 00:00:00 2001 From: Andrew Nelson Date: Wed, 31 Jan 2024 12:51:49 -0800 Subject: [PATCH] Move err prototype to errutil.h --- err.c | 3 +-- errutil.h | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/err.c b/err.c index 0066ef7..19bc753 100644 --- a/err.c +++ b/err.c @@ -31,7 +31,6 @@ int err_flags = 0; being the most verbose and 0 being the least verbose. The default verbosity level is 1. */ -noreturn void err(int eval, const char *fmt, ...); static int parsedverbosity(void) { char *pszVerbosity = getenv("BST_VERBOSITY"); @@ -41,7 +40,7 @@ static int parsedverbosity(void) char *endPtr; int iVerbosity = strtol(pszVerbosity, &endPtr, 10); if (*endPtr != '\0') { - err(2, "un-parsable value of BST_VERBOSITY"); + err(2, "un-parsable value of BST_VERBOSITY"); } return iVerbosity; } diff --git a/errutil.h b/errutil.h index e33a257..b95572c 100644 --- a/errutil.h +++ b/errutil.h @@ -7,6 +7,8 @@ #ifndef ERRUTIL_H_ # define ERRUTIL_H_ +#include + enum { ERR_USE_SYSLOG = 1, @@ -16,6 +18,7 @@ enum { extern void (*err_exit)(int); extern const char *err_line_ending; void init_logverbosity(); +noreturn void err(int eval, const char *fmt, ...); extern int err_flags; #endif /* !ERRUTIL_H */