X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxser.c;h=691e527ed143522470f7b1a45270a4170125adc2;hb=89da2ddf564a93414ee9ab2df3f053608094e417;hp=e45f3ae1232a2d21139d9d2f0407acf02289187f;hpb=ea301bdd9b892a5e70692f82f5c0b98bd585e775;p=PuTTY.git diff --git a/unix/uxser.c b/unix/uxser.c index e45f3ae1..691e527e 100644 --- a/unix/uxser.c +++ b/unix/uxser.c @@ -289,8 +289,8 @@ static const char *serial_configure(Serial serial, Conf *conf) */ static const char *serial_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) { Serial serial; const char *err; @@ -462,7 +462,7 @@ static void serial_try_write(Serial serial) /* * Called to send data down the serial connection. */ -static int serial_send(void *handle, char *buf, int len) +static int serial_send(void *handle, const char *buf, int len) { Serial serial = (Serial) handle;