mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 11:31:00 -05:00
Add some missing 'const'.
plug_receive(), sftp_senddata() and handle_gotdata() in particular now take const pointers. Also fixed 'char *receive_data' in struct ProxySocket.
This commit is contained in:
4
telnet.c
4
telnet.c
@ -506,7 +506,7 @@ static void process_subneg(Telnet *telnet)
|
||||
}
|
||||
}
|
||||
|
||||
static void do_telnet_read(Telnet *telnet, char *buf, int len)
|
||||
static void do_telnet_read(Telnet *telnet, const char *buf, int len)
|
||||
{
|
||||
strbuf *outbuf = strbuf_new();
|
||||
|
||||
@ -654,7 +654,7 @@ static void telnet_closing(Plug *plug, const char *error_msg, int error_code,
|
||||
/* Otherwise, the remote side closed the connection normally. */
|
||||
}
|
||||
|
||||
static void telnet_receive(Plug *plug, int urgent, char *data, int len)
|
||||
static void telnet_receive(Plug *plug, int urgent, const char *data, int len)
|
||||
{
|
||||
Telnet *telnet = container_of(plug, Telnet, plug);
|
||||
if (urgent)
|
||||
|
Reference in New Issue
Block a user