summaryrefslogtreecommitdiffstats
path: root/lib/libmytinfo
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-31 03:03:18 +0000
committerache <ache@FreeBSD.org>1994-10-31 03:03:18 +0000
commit4c32d7dc6b7ca747534cc0fc53a07992f63b8e21 (patch)
tree7906344bb12664e4b3a989db06cd6755f0d75b5f /lib/libmytinfo
parenta4a7ba23740614e7628b9ab6b06f18e0b2303485 (diff)
downloadFreeBSD-src-4c32d7dc6b7ca747534cc0fc53a07992f63b8e21.zip
FreeBSD-src-4c32d7dc6b7ca747534cc0fc53a07992f63b8e21.tar.gz
More verbose diagnostic, if fails
Diffstat (limited to 'lib/libmytinfo')
-rw-r--r--lib/libmytinfo/terminfo.c4
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
OpenPOWER on IntegriCloud