summaryrefslogtreecommitdiff
path: root/jpg2ff.c
diff options
context:
space:
mode:
authorLaslo Hunhold <dev@frign.de>2018-04-11 12:48:50 +0200
committerLaslo Hunhold <dev@frign.de>2018-04-11 12:48:50 +0200
commitd9c382a9d873c8758f518c6aa7e6c32cf3ea7b89 (patch)
tree9672252ec27b8c76bfe502669c3b182a4a6f8c1b /jpg2ff.c
parenta2e07745e6e31231dd59bd1d4a3415a5f4042d0c (diff)
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.
Diffstat (limited to 'jpg2ff.c')
-rw-r--r--jpg2ff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/jpg2ff.c b/jpg2ff.c
index b00924e..360ace4 100644
--- a/jpg2ff.c
+++ b/jpg2ff.c
@@ -40,8 +40,7 @@ jpeg_setup_reader(struct jpeg_decompress_struct *s, struct jpeg_error_mgr *e,
static void
usage(void)
{
- fprintf(stderr, "usage: %s\n", argv0);
- exit(1);
+ die("usage: %s", argv0);
}
int