From d9c382a9d873c8758f518c6aa7e6c32cf3ea7b89 Mon Sep 17 00:00:00 2001 From: Laslo Hunhold Date: Wed, 11 Apr 2018 12:48:50 +0200 Subject: Add warn() and die() To fully centralize this matter these well-tested functions are added to the util.c, and implemented as we know it from many other suckless projects. --- ff2ppm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ff2ppm.c') diff --git a/ff2ppm.c b/ff2ppm.c index 5e11eb5..9b82d9c 100644 --- a/ff2ppm.c +++ b/ff2ppm.c @@ -14,8 +14,7 @@ static void usage(void) { - fprintf(stderr, "usage: %s [-b colour]\n", argv0); - exit(1); + die("usage: %s [-b colour]", argv0); } int -- cgit v1.2.3