mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 19:41:01 -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:
8
sftp.h
8
sftp.h
@ -70,9 +70,9 @@
|
||||
* sftp_sendbuffer returns the size of the backlog of data in the
|
||||
* transmit queue.
|
||||
*/
|
||||
bool sftp_senddata(const char *data, int len);
|
||||
int sftp_sendbuffer(void);
|
||||
bool sftp_recvdata(char *data, int len);
|
||||
bool sftp_senddata(const char *data, size_t len);
|
||||
size_t sftp_sendbuffer(void);
|
||||
bool sftp_recvdata(char *data, size_t len);
|
||||
|
||||
/*
|
||||
* Free sftp_requests
|
||||
@ -494,7 +494,7 @@ struct ScpServer {
|
||||
struct ScpServerVtable {
|
||||
void (*free)(ScpServer *s);
|
||||
|
||||
int (*send)(ScpServer *s, const void *data, size_t length);
|
||||
size_t (*send)(ScpServer *s, const void *data, size_t length);
|
||||
void (*throttle)(ScpServer *s, bool throttled);
|
||||
void (*eof)(ScpServer *s);
|
||||
};
|
||||
|
Reference in New Issue
Block a user