diff options
author | powwow@askgustav.com <powwow@askgustav.com> | 2017-02-18 22:07:47 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2018-09-05 17:25:17 (GMT) |
commit | d380255c5c82d1a66bfcfe964c68afef69715375 (patch) | |
tree | 56aae2c49fc4b0d6557770e7c4d3f881c0d1e7b6 /tcp.c | |
parent | e50085c705164114b3f4eb3efd4b2f7794a16163 (diff) | |
download | powwow-d380255c5c82d1a66bfcfe964c68afef69715375.zip powwow-d380255c5c82d1a66bfcfe964c68afef69715375.tar.gz powwow-d380255c5c82d1a66bfcfe964c68afef69715375.tar.bz2 |
remove unused function tcp_read_addIAC()
Diffstat (limited to 'tcp.c')
-rw-r--r-- | tcp.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -280,30 +280,6 @@ static int tcp_addIAC __P3 (char *,dest, char *,txt, int,len) } /* - * read from an fd, protecting ASCII 255 as IAC IAC while we read. - * the buffer is assumed to be big enough to hold the whole file - */ -int tcp_read_addIAC __P3 (int,fd, char *,data, int,len) -{ - char *s = data; - char buf[BUFSIZE]; - int i; - - while (len > 0) { - while ((i = read(fd, buf, MIN2(len, BUFSIZE))) < 0 && errno == EINTR) - ; - if (i < 0) { - errmsg("read from file"); - return -1; - } else if (i == 0) - break; - s += tcp_addIAC(s, buf, i); - len -= i; - } - return s - data; -} - -/* * read a maximum of size chars from remote host * using the telnet protocol. return chars read. */ |