mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 01:57:40 -05:00
Make lots of 'int' length fields into size_t.
This is a general cleanup which has been overdue for some time: lots of length fields are now the machine word type rather than the (in practice) fixed 'int'.
This commit is contained in:
@ -1310,7 +1310,8 @@ static void pty_free(Backend *be)
|
||||
static void pty_try_write(Pty *pty)
|
||||
{
|
||||
void *data;
|
||||
int len, ret;
|
||||
size_t len;
|
||||
ssize_t ret;
|
||||
|
||||
assert(pty->master_i >= 0);
|
||||
|
||||
@ -1348,7 +1349,7 @@ static void pty_try_write(Pty *pty)
|
||||
/*
|
||||
* Called to send data down the pty.
|
||||
*/
|
||||
static int pty_send(Backend *be, const char *buf, int len)
|
||||
static size_t pty_send(Backend *be, const char *buf, size_t len)
|
||||
{
|
||||
Pty *pty = container_of(be, Pty, backend);
|
||||
|
||||
@ -1393,7 +1394,7 @@ static void pty_close(Pty *pty)
|
||||
/*
|
||||
* Called to query the current socket sendability status.
|
||||
*/
|
||||
static int pty_sendbuffer(Backend *be)
|
||||
static size_t pty_sendbuffer(Backend *be)
|
||||
{
|
||||
/* Pty *pty = container_of(be, Pty, backend); */
|
||||
return 0;
|
||||
@ -1494,7 +1495,7 @@ static bool pty_sendok(Backend *be)
|
||||
return true;
|
||||
}
|
||||
|
||||
static void pty_unthrottle(Backend *be, int backlog)
|
||||
static void pty_unthrottle(Backend *be, size_t backlog)
|
||||
{
|
||||
/* Pty *pty = container_of(be, Pty, backend); */
|
||||
/* do nothing */
|
||||
|
Reference in New Issue
Block a user