diff options
author | Laslo Hunhold <dev@frign.de> | 2018-04-11 12:48:50 +0200 |
---|---|---|
committer | Laslo Hunhold <dev@frign.de> | 2018-04-11 12:48:50 +0200 |
commit | d9c382a9d873c8758f518c6aa7e6c32cf3ea7b89 (patch) | |
tree | 9672252ec27b8c76bfe502669c3b182a4a6f8c1b /ff2jpg.c | |
parent | a2e07745e6e31231dd59bd1d4a3415a5f4042d0c (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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |