util.h: add ecalloc from util.c and fix die() argument declaration - libsl - draw back-ends for dwm, dmenu, etc (HTM) git clone git://git.codemadness.org/libsl (DIR) Log (DIR) Files (DIR) Refs (DIR) LICENSE --- (DIR) commit 96e040538ee37ebcd1b0ade913280838385634b8 (DIR) parent 53ebcb48c6b12882c6dbe352ee43c96b2fb01b84 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 26 Sep 2019 22:57:15 +0200 util.h: add ecalloc from util.c and fix die() argument declaration Diffstat: M util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- (DIR) diff --git a/util.h b/util.h @@ -4,4 +4,5 @@ #define MIN(A, B) ((A) < (B) ? (A) : (B)) #define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) -void die(const char *errstr, ...); +void die(const char *fmt, ...); +void *ecalloc(size_t nmemb, size_t size);