diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-08-16 18:54:18 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-08-16 18:54:18 +0200 |
| commit | af3cee4bebc3fed17c8932cc55c8cb694c250447 (patch) | |
| tree | a2a2aa1ede56ba8b626e556207e607b171b7f419 /src/util.h | |
| parent | Fix bugs in blind-from-video (diff) | |
| download | blind-af3cee4bebc3fed17c8932cc55c8cb694c250447.tar.gz blind-af3cee4bebc3fed17c8932cc55c8cb694c250447.tar.bz2 blind-af3cee4bebc3fed17c8932cc55c8cb694c250447.tar.xz | |
blind-next-frame: fix exit status on incorrect usage
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/util.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -15,9 +15,12 @@ #define INTSTRLEN(TYPE) ((sizeof(TYPE) == 1 ? 3 : (5 * sizeof(TYPE) / 2)) + ((TYPE)-1 < 1)) #define USAGE(SYNOPSIS)\ + NUSAGE(1, SYNOPSIS) + +#define NUSAGE(STATUS, SYNOPSIS)\ ATTRIBUTE_NORETURN\ static void usage(void)\ - { eprintf("usage: %s%s%s\n", argv0, *SYNOPSIS ? " " : "", SYNOPSIS); } + { enprintf((STATUS), "usage: %s%s%s\n", argv0, *SYNOPSIS ? " " : "", SYNOPSIS); } #include "util/eprintf.h" #include "util/efflush.h" |
