From: simon Date: Mon, 5 Feb 2001 13:04:00 +0000 (+0000) Subject: Various bug/warning fixes from Jacob X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/b6c680d45c9045b6e5f2350f3dd172e569f7c65d Various bug/warning fixes from Jacob git-svn-id: svn://svn.tartarus.org/sgt/putty@926 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/rlogin.c b/rlogin.c index 8a7b1fa6..eb6a6c2d 100644 --- a/rlogin.c +++ b/rlogin.c @@ -1,6 +1,7 @@ #include #include #include +#include #include "putty.h" diff --git a/telnet.c b/telnet.c index bf42ed24..65953421 100644 --- a/telnet.c +++ b/telnet.c @@ -174,7 +174,7 @@ static void deactivate_option (struct Opt *o) { static void option_side_effects(struct Opt *o, int enabled) { if (o->option == TELOPT_ECHO && o->send == DO) echoing = !enabled; - else if (o->option = TELOPT_SGA && o->send == DO) + else if (o->option == TELOPT_SGA && o->send == DO) editing = !enabled; ldisc_send(NULL, 0); /* cause ldisc to notice the change */ } diff --git a/windlg.c b/windlg.c index 84674a72..d6fce02a 100644 --- a/windlg.c +++ b/windlg.c @@ -3,6 +3,7 @@ #include #include #include +#include #include "ssh.h" #include "putty.h" @@ -1968,8 +1969,6 @@ static int GenericMainDlgProc (HWND hwnd, UINT msg, static int CALLBACK MainDlgProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { - static HWND page = NULL; - if (msg == WM_COMMAND && LOWORD(wParam) == IDOK) { } if (msg == WM_COMMAND && LOWORD(wParam) == IDCX_ABOUT) { @@ -1984,7 +1983,6 @@ static int CALLBACK MainDlgProc (HWND hwnd, UINT msg, static int CALLBACK ReconfDlgProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { - static HWND page; return GenericMainDlgProc (hwnd, msg, wParam, lParam, 1); }