mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 20:12: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:
@ -797,14 +797,14 @@ static void supdup_reconfig(Backend *be, Conf *conf)
|
||||
/*
|
||||
* Called to send data down the Supdup connection.
|
||||
*/
|
||||
static size_t supdup_send(Backend *be, const char *buf, size_t len)
|
||||
static void supdup_send(Backend *be, const char *buf, size_t len)
|
||||
{
|
||||
Supdup *supdup = container_of(be, Supdup, backend);
|
||||
char c;
|
||||
int i;
|
||||
|
||||
if (supdup->s == NULL)
|
||||
return 0;
|
||||
return;
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
if (buf[i] == 034)
|
||||
@ -814,7 +814,6 @@ static size_t supdup_send(Backend *be, const char *buf, size_t len)
|
||||
supdup->bufsize = sk_write(supdup->s, &c, 1);
|
||||
}
|
||||
}
|
||||
return supdup->bufsize;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user