X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/67779be7464c9134ef08048f7d9a15d7677442e7..4d331a77f20f321f867f5907e2ffc06249378881:/scp.c diff --git a/scp.c b/scp.c index 1160139e..8c7df21a 100644 --- a/scp.c +++ b/scp.c @@ -9,7 +9,13 @@ */ #include +#ifndef AUTO_WINSOCK +#ifdef WINSOCK_TWO +#include +#else #include +#endif +#endif #include #include #include @@ -68,12 +74,14 @@ static void send_str_msg(unsigned int msg_id, char *str); static void gui_update_stats(char *name, unsigned long size, int percentage, time_t elapsed); /* - * This function is needed to link with ssh.c, but it never gets called. + * These functions are needed to link with ssh.c, but never get called. */ void term_out(void) { abort(); } +void begin_session(void) { +} /* GUI Adaptation - Sept 2000 */ void send_msg(HWND h, UINT message, WPARAM wParam) @@ -157,6 +165,19 @@ void fatalbox(char *fmt, ...) exit(1); } +void connection_fatal(char *fmt, ...) +{ + char str[0x100]; /* Make the size big enough */ + va_list ap; + va_start(ap, fmt); + strcpy(str, "Fatal:"); + vsprintf(str+strlen(str), fmt, ap); + va_end(ap); + strcat(str, "\n"); + tell_str(stderr, str); + + exit(1); +} /* * Print an error message and exit after closing the SSH link.