X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=raw.c;h=b083d09d59a572c885470b13911b26438b85722b;hb=89da2ddf564a93414ee9ab2df3f053608094e417;hp=97355e8ad768bd38df89bc653736a386c9143c5b;hpb=fb4fbe11588d3e53be99909f57dd179d1105aaf5;p=PuTTY.git diff --git a/raw.c b/raw.c index 97355e8a..b083d09d 100644 --- a/raw.c +++ b/raw.c @@ -125,8 +125,8 @@ static void raw_sent(Plug plug, int bufsize) */ static const char *raw_init(void *frontend_handle, void **backend_handle, Conf *conf, - char *host, int port, char **realhost, int nodelay, - int keepalive) + const char *host, int port, char **realhost, + int nodelay, int keepalive) { static const struct plug_function_table fn_table = { raw_log, @@ -214,7 +214,7 @@ static void raw_reconfig(void *handle, Conf *conf) /* * Called to send data down the raw connection. */ -static int raw_send(void *handle, char *buf, int len) +static int raw_send(void *handle, const char *buf, int len) { Raw raw = (Raw) handle;