mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-10 15:53:47 -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:
@ -287,15 +287,14 @@ static void conpty_reconfig(Backend *be, Conf *conf)
|
||||
{
|
||||
}
|
||||
|
||||
static size_t conpty_send(Backend *be, const char *buf, size_t len)
|
||||
static void conpty_send(Backend *be, const char *buf, size_t len)
|
||||
{
|
||||
ConPTY *conpty = container_of(be, ConPTY, backend);
|
||||
|
||||
if (conpty->out == NULL)
|
||||
return 0;
|
||||
return;
|
||||
|
||||
conpty->bufsize = handle_write(conpty->out, buf, len);
|
||||
return conpty->bufsize;
|
||||
}
|
||||
|
||||
static size_t conpty_sendbuffer(Backend *be)
|
||||
|
Reference in New Issue
Block a user