From 466783eaf829b8ef2492c4b2c84857a17a24d59a Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 31 Oct 1994 03:03:18 +0000 Subject: [PATCH] More verbose diagnostic, if fails --- lib/libmytinfo/terminfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libmytinfo/terminfo.c b/lib/libmytinfo/terminfo.c index 1e81b37ba11b..a136d1e82643 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