aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Schulz <[email protected]>2002-02-28 19:28:27 +0000
committerTimo Schulz <[email protected]>2002-02-28 19:28:27 +0000
commit6be293e24b0d51d6438d09a85c673c021b3a95da (patch)
treecf72facade9550d248ccba96ba17997d6bd493f2
parentDo not include v3 keys in a --export-secret-subkeys export. (diff)
downloadgnupg-6be293e24b0d51d6438d09a85c673c021b3a95da.tar.gz
gnupg-6be293e24b0d51d6438d09a85c673c021b3a95da.zip
* http.c (write_server): Convert integer to a HANDLE for W32.
Usually there should be no problem, but maybe this is not true for all W32 versions (2K, NT, XP, ME).
-rw-r--r--util/ChangeLog4
-rw-r--r--util/http.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index e63be8712..375002a85 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,7 @@
+2002-02-28 Timo Schulz <[email protected]>
+
+ * http.c (write_server): Convert integer to a HANDLE for W32.
+
2002-01-27 David Shaw <[email protected]>
* iobuf.c (iobuf_fdopen, iobuf_sockopen): Do not cache fdopened
diff --git a/util/http.c b/util/http.c
index 02b558f5f..de5aba946 100644
--- a/util/http.c
+++ b/util/http.c
@@ -787,8 +787,9 @@ write_server( int sock, const char *data, size_t length )
while( nleft > 0 ) {
#ifdef __MINGW32__
unsigned long nwritten;
+ HANDLE sock_fd = (HANDLE)sock;
- if ( !WriteFile ( sock, data, nleft, &nwritten, NULL)) {
+ if ( !WriteFile ( sock_fd, data, nleft, &nwritten, NULL)) {
log_info ("write failed: ec=%d\n", (int)GetLastError ());
return G10ERR_NETWORK;
}