From 0ecfb229f43249008003a8203201c13f31d52d78 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sun, 27 Sep 2009 15:31:08 +0000 Subject: [PATCH] Fix some (probably harmless) warnings. [originally from svn r8663] --- windows/winsftp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/windows/winsftp.c b/windows/winsftp.c index 94d04a75..4a64c195 100644 --- a/windows/winsftp.c +++ b/windows/winsftp.c @@ -6,6 +6,7 @@ #include "putty.h" #include "psftp.h" +#include "ssh.h" #include "int64.h" char *get_ttymode(void *frontend, const char *mode) { return NULL; } @@ -108,7 +109,8 @@ RFile *open_existing_file(char *name, uint64 *size, int read_from_file(RFile *f, void *buffer, int length) { - int ret, read; + int ret; + DWORD read; ret = ReadFile(f->h, buffer, length, &read, NULL); if (!ret) return -1; /* error */ @@ -163,7 +165,8 @@ WFile *open_existing_wfile(char *name, uint64 *size) int write_to_file(WFile *f, void *buffer, int length) { - int ret, written; + int ret; + DWORD written; ret = WriteFile(f->h, buffer, length, &written, NULL); if (!ret) return -1; /* error */