commit 9cd0a7d91285aed9f9cd3945a133b8a2cb029686
parent d61d53142e02c81eccd9a2513dbe35c01cb35351
Author: Frederic Cambus <fred@statdns.com>
Date: Mon, 8 Feb 2021 15:25:16 +0100
Add an error() function to wrap errx() calls.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/statzone.c b/src/statzone.c
@@ -38,6 +38,12 @@ struct timespec begin, end, elapsed;
struct results results;
static void
+error(const char *str)
+{
+ errx(EXIT_FAILURE, "%s", str);
+}
+
+static void
usage()
{
printf("USAGE: statzone [-hv] zonefile\n\n" \