X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/492a04dbc27f0ccb0d8d4fcc8da529df0cd254c9..e0e7dff87dc3f482da6ab00317664474b0f82995:/unix/uxnet.c diff --git a/unix/uxnet.c b/unix/uxnet.c index 26f32be3..722ab474 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -298,8 +298,8 @@ static void sk_tcp_flush(Socket s) } static void sk_tcp_close(Socket s); -static int sk_tcp_write(Socket s, char *data, int len); -static int sk_tcp_write_oob(Socket s, char *data, int len); +static int sk_tcp_write(Socket s, const char *data, int len); +static int sk_tcp_write_oob(Socket s, const char *data, int len); static void sk_tcp_set_private_ptr(Socket s, void *ptr); static void *sk_tcp_get_private_ptr(Socket s); static void sk_tcp_set_frozen(Socket s, int is_frozen); @@ -726,7 +726,7 @@ void try_send(Actual_Socket s) } } -static int sk_tcp_write(Socket sock, char *buf, int len) +static int sk_tcp_write(Socket sock, const char *buf, int len) { Actual_Socket s = (Actual_Socket) sock; @@ -744,7 +744,7 @@ static int sk_tcp_write(Socket sock, char *buf, int len) return bufchain_size(&s->output_data); } -static int sk_tcp_write_oob(Socket sock, char *buf, int len) +static int sk_tcp_write_oob(Socket sock, const char *buf, int len) { Actual_Socket s = (Actual_Socket) sock;