From a4b5f66d931a43dda6aa00516f8d2d25cba607c3 Mon Sep 17 00:00:00 2001 From: "Pavel I. Kryukov" Date: Sat, 3 Nov 2018 21:20:40 +0300 Subject: [PATCH] Remove 'static' qualifier from Conf pointer Configuration pointer is globally visible from winstuff.h, so it cannot be 'static' any longer. --- pscp.c | 2 +- psftp.c | 2 +- unix/uxplink.c | 2 +- windows/winplink.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pscp.c b/pscp.c index a16825b9..592df7a9 100644 --- a/pscp.c +++ b/pscp.c @@ -43,7 +43,7 @@ static bool using_sftp = false; static bool uploading = false; static Backend *backend; -static Conf *conf; +Conf *conf; bool sent_eof = false; static void source(const char *src); diff --git a/psftp.c b/psftp.c index d87fea21..023a16e4 100644 --- a/psftp.c +++ b/psftp.c @@ -34,7 +34,7 @@ static void do_sftp_cleanup(void); char *pwd, *homedir; static Backend *backend; -static Conf *conf; +Conf *conf; bool sent_eof = false; /* ------------------------------------------------------------ diff --git a/unix/uxplink.c b/unix/uxplink.c index 35b07f92..9d080878 100644 --- a/unix/uxplink.c +++ b/unix/uxplink.c @@ -41,7 +41,7 @@ void cmdline_error(const char *fmt, ...) static bool local_tty = false; /* do we have a local tty? */ static Backend *backend; -static Conf *conf; +Conf *conf; /* * Default settings that are specific to Unix plink. diff --git a/windows/winplink.c b/windows/winplink.c index 1f47dd9b..fa6f4c98 100644 --- a/windows/winplink.c +++ b/windows/winplink.c @@ -38,7 +38,7 @@ DWORD orig_console_mode; WSAEVENT netevent; static Backend *backend; -static Conf *conf; +Conf *conf; bool term_ldisc(Terminal *term, int mode) {