]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Various bug/warning fixes from Jacob
authorSimon Tatham <anakin@pobox.com>
Mon, 5 Feb 2001 13:04:00 +0000 (13:04 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 5 Feb 2001 13:04:00 +0000 (13:04 +0000)
[originally from svn r926]

rlogin.c
telnet.c
windlg.c

index 8a7b1fa6786f30998914da5bd12506dbfb5dec5d..eb6a6c2d7c36f98c54fc25396e6b870da34f325e 100644 (file)
--- a/rlogin.c
+++ b/rlogin.c
@@ -1,6 +1,7 @@
 #include <windows.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <ctype.h>
 
 #include "putty.h"
 
index bf42ed24c7d3b748f27c4f7533a0463cbf096e4c..65953421169b785a09e25ae7b0faa853c1316892 100644 (file)
--- 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 */
 }
index 84674a724ae258c28eddb98de5efaa9818cc685f..d6fce02ae1a3c563b4b05ce1a910f3c1fdf46209 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -3,6 +3,7 @@
 #include <commdlg.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <ctype.h>
 
 #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);
 }