From f9fe16497ad5f2df1261cbc6bbc0d01681d37cb2 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Wed, 4 Jan 2017 16:24:40 +0000 Subject: [PATCH] Delete dead code in chat(8) It's always been dead, ever since first import in 1994. It's still dead in OpenBSD's version, too. Reported by: Coverity CID: 270586 MFC after: 4 weeks Sponsored by: Spectra Logic Corp --- usr.bin/chat/chat.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/usr.bin/chat/chat.c b/usr.bin/chat/chat.c index 107d9519c326..059aa2483292 100644 --- a/usr.bin/chat/chat.c +++ b/usr.bin/chat/chat.c @@ -1173,7 +1173,7 @@ int get_string(char *string) { char temp[STR_LEN]; - int c, printed = 0; + int c; size_t len, minlen; char *s = temp, *end = s + STR_LEN; char *logged = temp; @@ -1306,13 +1306,6 @@ get_string(char *string) alarm(0); - if (verbose && printed) { - if (alarmed) - chat_logf(" -- read timed out"); - else - chat_logf(" -- read failed: %m"); - } - exit_code = 3; alarmed = 0; return (0);