]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxser.c
Giant const-correctness patch of doom!
[PuTTY.git] / unix / uxser.c
index e45f3ae1232a2d21139d9d2f0407acf02289187f..691e527ed143522470f7b1a45270a4170125adc2 100644 (file)
@@ -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;