diff options
Diffstat (limited to 'lib/libmytinfo')
-rw-r--r-- | lib/libmytinfo/terminfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libmytinfo/terminfo.c b/lib/libmytinfo/terminfo.c index 1e81b37..a136d1e 100644 --- a/lib/libmytinfo/terminfo.c +++ b/lib/libmytinfo/terminfo.c @@ -31,12 +31,12 @@ char *msg; { return write(2, msg, strlen(msg)); } -#define RETERR(e, msg) { (err == NULL ? (printerr(msg), exit(1), 0) \ +#define RETERR(e, msg) { (err == NULL ? (printerr(msg), exit(1)) \ : (*err = e)); return ERR; } #else -#define RETERR(e, msg) { (err == NULL ? (fprintf(stderr, msg), exit(1), 0) \ +#define RETERR(e, msg) { (err == NULL ? (fprintf(stderr, "setupterm(\"%s\",%d,NULL): %s", term, fd, msg), exit(1)) \ : (*err = e)); return ERR; } #endif |