summaryrefslogtreecommitdiff
path: root/ff2jpg.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 /ff2jpg.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 'ff2jpg.c')
-rw-r--r--ff2jpg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ff2jpg.c b/ff2jpg.c
index 9774549..f4514b8 100644
--- a/ff2jpg.c
+++ b/ff2jpg.c
@@ -47,8 +47,7 @@ jpeg_setup_writer(struct jpeg_compress_struct *s, struct jpeg_error_mgr *e,
static void
usage(void)
{
- fprintf(stderr, "usage: %s [-b colour] [-o] [-q quality]\n", argv0);
- exit(1);
+ die("usage: %s [-b colour] [-o] [-q quality]", argv0);
}
int