]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix some (probably harmless) warnings.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 27 Sep 2009 15:31:08 +0000 (15:31 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 27 Sep 2009 15:31:08 +0000 (15:31 +0000)
[originally from svn r8663]

windows/winsftp.c

index 94d04a750f34b6468eb638798cdba5dc55817987..4a64c195fba2565fe27095f1c8a8ed9d0a587d38 100644 (file)
@@ -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 */