X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=ldisc.c;h=320a93607c3cb6204732bf0e4889e4a9db9e32ba;hb=510f49e405e71ba5c97875e7a019364e1ef5fac9;hp=0e864874efcb0b9908693d90bc67078d9bc4fab7;hpb=d89fdf65a79278eb83f335da5945e324c9b10943;p=PuTTY.git diff --git a/ldisc.c b/ldisc.c index 0e864874..320a9360 100644 --- a/ldisc.c +++ b/ldisc.c @@ -22,7 +22,7 @@ (ldisc->back->ldisc(ldisc->backhandle, LD_EDIT) || \ term_ldisc(ldisc->term, LD_EDIT)))) -static void c_write(Ldisc ldisc, char *buf, int len) +static void c_write(Ldisc ldisc, const char *buf, int len) { from_backend(ldisc->frontend, 0, buf, len); } @@ -134,7 +134,7 @@ void ldisc_echoedit_update(void *handle) frontend_echoedit_update(ldisc->frontend, ECHOING, EDITING); } -void ldisc_send(void *handle, char *buf, int len, int interactive) +void ldisc_send(void *handle, const char *buf, int len, int interactive) { Ldisc ldisc = (Ldisc) handle; int keyflag = 0;