gawk

[old] Sed-like interface to the Gopher protocol
Log | Files | Refs | LICENSE

commit ad0e4c4b9baa1e4d41afcad5a38c735220cc943b
parent a7aa1d362d4f8a865bc685379276460ef7f9e186
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Wed, 23 Dec 2020 22:27:28 -0800

Remove useless error checking in putprompt()

isatty(3) only fails if the file descriptor is invalid or is not a
tty. If it is not valid the program is going to exit very soon
anyway.

Diffstat:
Mmain.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c @@ -190,8 +190,6 @@ putprompt(const char *prompt) fputs(prompt, stderr); else if (errno == ENOTTY) errno = 0; - else - warn("isatty %d", STDIN_FILENO); } int