~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix some (probably harmless) warnings.
[sgt/putty]
/
windows
/
winsftp.c
diff --git
a/windows/winsftp.c
b/windows/winsftp.c
index
5293e00
..
4a64c19
100644
(file)
--- a/
windows/winsftp.c
+++ b/
windows/winsftp.c
@@
-6,6
+6,7
@@
#include "putty.h"
#include "psftp.h"
#include "putty.h"
#include "psftp.h"
+#include "ssh.h"
#include "int64.h"
char *get_ttymode(void *frontend, const char *mode) { return NULL; }
#include "int64.h"
char *get_ttymode(void *frontend, const char *mode) { return NULL; }
@@
-19,6
+20,12
@@
int get_userpass_input(prompts_t *p, unsigned char *in, int inlen)
return ret;
}
return ret;
}
+void platform_get_x11_auth(struct X11Display *display, const Config *cfg)
+{
+ /* Do nothing, therefore no auth. */
+}
+const int platform_uses_x11_unix_by_default = TRUE;
+
/* ----------------------------------------------------------------------
* File access abstraction.
*/
/* ----------------------------------------------------------------------
* File access abstraction.
*/
@@
-102,7
+109,8
@@
RFile *open_existing_file(char *name, uint64 *size,
int read_from_file(RFile *f, void *buffer, int length)
{
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 */
ret = ReadFile(f->h, buffer, length, &read, NULL);
if (!ret)
return -1; /* error */
@@
-157,7
+165,8
@@
WFile *open_existing_wfile(char *name, uint64 *size)
int write_to_file(WFile *f, void *buffer, int length)
{
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 */
ret = WriteFile(f->h, buffer, length, &written, NULL);
if (!ret)
return -1; /* error */
@@
-490,8
+499,7
@@
int do_eventsel_loop(HANDLE other_event)
else
otherindex = -1;
else
otherindex = -1;
- n = MsgWaitForMultipleObjects(nallhandles, handles, FALSE, ticks,
- QS_POSTMESSAGE);
+ n = WaitForMultipleObjects(nallhandles, handles, FALSE, ticks);
if ((unsigned)(n - WAIT_OBJECT_0) < (unsigned)nhandles) {
handle_got_event(handles[n - WAIT_OBJECT_0]);
if ((unsigned)(n - WAIT_OBJECT_0) < (unsigned)nhandles) {
handle_got_event(handles[n - WAIT_OBJECT_0]);