From 14bc8a3883663656cd4254567a978002c062992d Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Thu, 24 Jun 2021 21:23:02 +0200 Subject: refactored code for readability and keeping within 80ch limit, updated service source --- src/util.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index c0e9064..32555ce 100644 --- a/src/util.h +++ b/src/util.h @@ -11,7 +11,10 @@ #define MIN(x,y) ((x) > (y) ? (y) : (x)) #define MAX(x,y) ((x) < (y) ? (y) : (x)) -#define NULLFREE(p) do { free(p); p = NULL; } while (0) +#define ERR(...) fprintf(stderr, "ERR: " __VA_ARGS__) + +#define NFREE(p) do { free(p); p = NULL; } while (0) +#define NFCLOSE(f) do { fclose(f); f = NULL; } while (0) #define MHASHLEN 40 -- cgit v1.2.3-71-gd317