From feb7fdfe6d80a585f33113a8751b9e0dfa0142b6 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 26 Jan 2001 09:33:12 +0000 Subject: [PATCH] Fix build errors in PSCP after line discipline upheaval git-svn-id: svn://svn.tartarus.org/sgt/putty@898 cda61777-01e9-0310-a592-d414129be87e --- putty.h | 2 +- scp.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/putty.h b/putty.h index 5423ae91..a06ed7d0 100644 --- a/putty.h +++ b/putty.h @@ -344,7 +344,7 @@ void term_invalidate(void); void term_blink(int set_cursor); void term_paste(void); void term_nopaste(void); -int telnet_ldisc(int option); +int term_ldisc(int option); void from_backend(int is_stderr, char *data, int len); void logfopen (void); void logfclose (void); diff --git a/scp.c b/scp.c index c13be5ec..c53e6b69 100644 --- a/scp.c +++ b/scp.c @@ -20,6 +20,7 @@ #include #include #include +#include /* GUI Adaptation - Sept 2000 */ #include #include @@ -76,6 +77,16 @@ static void gui_update_stats(char *name, unsigned long size, void logevent(char *string) { } +void ldisc_send(char *buf, int len) { + /* + * This is only here because of the calls to ldisc_send(NULL, + * 0) in ssh.c. Nothing in PSCP actually needs to use the ldisc + * as an ldisc. So if we get called with any real data, I want + * to know about it. + */ + assert(len == 0); +} + void verify_ssh_host_key(char *host, int port, char *keytype, char *keystr, char *fingerprint) { int ret; -- 2.11.0