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
This commit is contained in:
parent
16648a78b7
commit
36c8720073
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user