mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Various bug/warning fixes from Jacob
[originally from svn r926]
This commit is contained in:
parent
764a14a431
commit
0507b7437a
1
rlogin.c
1
rlogin.c
@ -1,6 +1,7 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "putty.h"
|
#include "putty.h"
|
||||||
|
|
||||||
|
2
telnet.c
2
telnet.c
@ -174,7 +174,7 @@ static void deactivate_option (struct Opt *o) {
|
|||||||
static void option_side_effects(struct Opt *o, int enabled) {
|
static void option_side_effects(struct Opt *o, int enabled) {
|
||||||
if (o->option == TELOPT_ECHO && o->send == DO)
|
if (o->option == TELOPT_ECHO && o->send == DO)
|
||||||
echoing = !enabled;
|
echoing = !enabled;
|
||||||
else if (o->option = TELOPT_SGA && o->send == DO)
|
else if (o->option == TELOPT_SGA && o->send == DO)
|
||||||
editing = !enabled;
|
editing = !enabled;
|
||||||
ldisc_send(NULL, 0); /* cause ldisc to notice the change */
|
ldisc_send(NULL, 0); /* cause ldisc to notice the change */
|
||||||
}
|
}
|
||||||
|
4
windlg.c
4
windlg.c
@ -3,6 +3,7 @@
|
|||||||
#include <commdlg.h>
|
#include <commdlg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "putty.h"
|
#include "putty.h"
|
||||||
@ -1968,8 +1969,6 @@ static int GenericMainDlgProc (HWND hwnd, UINT msg,
|
|||||||
|
|
||||||
static int CALLBACK MainDlgProc (HWND hwnd, UINT msg,
|
static int CALLBACK MainDlgProc (HWND hwnd, UINT msg,
|
||||||
WPARAM wParam, LPARAM lParam) {
|
WPARAM wParam, LPARAM lParam) {
|
||||||
static HWND page = NULL;
|
|
||||||
|
|
||||||
if (msg == WM_COMMAND && LOWORD(wParam) == IDOK) {
|
if (msg == WM_COMMAND && LOWORD(wParam) == IDOK) {
|
||||||
}
|
}
|
||||||
if (msg == WM_COMMAND && LOWORD(wParam) == IDCX_ABOUT) {
|
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,
|
static int CALLBACK ReconfDlgProc (HWND hwnd, UINT msg,
|
||||||
WPARAM wParam, LPARAM lParam) {
|
WPARAM wParam, LPARAM lParam) {
|
||||||
static HWND page;
|
|
||||||
return GenericMainDlgProc (hwnd, msg, wParam, lParam, 1);
|
return GenericMainDlgProc (hwnd, msg, wParam, lParam, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user