mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Separate backend_send from backend_sendbuffer.
On a similar theme of separating the query operation from the attempted change, backend_send() now no longer has the side effect of returning the current size of the send buffer. Instead, you have to call backend_sendbuffer() every time you want to know that.
This commit is contained in:
@ -813,7 +813,7 @@ static void telnet_reconfig(Backend *be, Conf *conf)
|
||||
/*
|
||||
* Called to send data down the Telnet connection.
|
||||
*/
|
||||
static size_t telnet_send(Backend *be, const char *buf, size_t len)
|
||||
static void telnet_send(Backend *be, const char *buf, size_t len)
|
||||
{
|
||||
Telnet *telnet = container_of(be, Telnet, backend);
|
||||
unsigned char *p, *end;
|
||||
@ -824,7 +824,7 @@ static size_t telnet_send(Backend *be, const char *buf, size_t len)
|
||||
#endif
|
||||
|
||||
if (telnet->s == NULL)
|
||||
return 0;
|
||||
return;
|
||||
|
||||
p = (unsigned char *)buf;
|
||||
end = (unsigned char *)(buf + len);
|
||||
@ -841,8 +841,6 @@ static size_t telnet_send(Backend *be, const char *buf, size_t len)
|
||||
p++;
|
||||
}
|
||||
}
|
||||
|
||||
return telnet->bufsize;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user