summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-10-31 03:03:18 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-10-31 03:03:18 +0000
commit466783eaf829b8ef2492c4b2c84857a17a24d59a (patch)
tree7906344bb12664e4b3a989db06cd6755f0d75b5f
parent6acf7a7072ffa4df84285171173ec003e427b5a1 (diff)
Notes
-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 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