1
0
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:
Simon Tatham
2019-02-06 20:42:44 +00:00
parent f60fe670ad
commit 0cda34c6f8
52 changed files with 312 additions and 285 deletions

View File

@ -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 */