~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed TODO comment after verifying that generated keys work
[sgt/putty]
/
noise.c
diff --git
a/noise.c
b/noise.c
index
3be3c06
..
1d764d5
100644
(file)
--- a/
noise.c
+++ b/
noise.c
@@
-4,6
+4,13
@@
*/
#include <windows.h>
*/
#include <windows.h>
+#ifndef AUTO_WINSOCK
+#ifdef WINSOCK_TWO
+#include <winsock2.h>
+#else
+#include <winsock.h>
+#endif
+#endif
#include <stdio.h>
#include "putty.h"
#include <stdio.h>
#include "putty.h"
@@
-14,7
+21,7
@@
* GetSystemPowerStatus function.
*/
typedef BOOL (WINAPI *gsps_t)(LPSYSTEM_POWER_STATUS);
* GetSystemPowerStatus function.
*/
typedef BOOL (WINAPI *gsps_t)(LPSYSTEM_POWER_STATUS);
-gsps_t gsps;
+
static
gsps_t gsps;
/*
* This function is called once, at PuTTY startup, and will do some
/*
* This function is called once, at PuTTY startup, and will do some
@@
-44,7
+51,6
@@
void noise_get_heavy(void (*func) (void *, int)) {
mod = GetModuleHandle("KERNEL32");
if (mod) {
gsps = (gsps_t)GetProcAddress(mod, "GetSystemPowerStatus");
mod = GetModuleHandle("KERNEL32");
if (mod) {
gsps = (gsps_t)GetProcAddress(mod, "GetSystemPowerStatus");
- debug(("got gsps=%p\n", gsps));
}
}
}
}