aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/chat/chat.c
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2017-01-04 16:24:40 +0000
committerAlan Somers <asomers@FreeBSD.org>2017-01-04 16:24:40 +0000
commitf9fe16497ad5f2df1261cbc6bbc0d01681d37cb2 (patch)
tree96c1fc4c5b86a58e4066ea2030a0dbf205d88f1a /usr.bin/chat/chat.c
parent4f64c5b3cf891e5046e67526c9b52cd79b09a7a0 (diff)
downloadsrc-f9fe16497ad5f2df1261cbc6bbc0d01681d37cb2.tar.gz
src-f9fe16497ad5f2df1261cbc6bbc0d01681d37cb2.zip
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
Notes
Notes: svn path=/head/; revision=311288
Diffstat (limited to 'usr.bin/chat/chat.c')
-rw-r--r--usr.bin/chat/chat.c9
1 files changed, 1 insertions, 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);