aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-io-pth.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2007-07-12 10:06:26 +0000
committerWerner Koch <[email protected]>2007-07-12 10:06:26 +0000
commit35fedf1acdf8aabea7a897dad06672cce10b6a3d (patch)
tree899f9afec6ecbd4eb8fb20b8669448730cac2b7c /src/assuan-io-pth.c
parent2007-07-08 Marcus Brinkmann <[email protected]> (diff)
downloadlibassuan-35fedf1acdf8aabea7a897dad06672cce10b6a3d.tar.gz
libassuan-35fedf1acdf8aabea7a897dad06672cce10b6a3d.zip
Introduced new type for better support of W32 HADNLES vs. file descriptors.
Diffstat (limited to 'src/assuan-io-pth.c')
-rw-r--r--src/assuan-io-pth.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/assuan-io-pth.c b/src/assuan-io-pth.c
index 67a0e9d..ff6f10d 100644
--- a/src/assuan-io-pth.c
+++ b/src/assuan-io-pth.c
@@ -54,13 +54,15 @@ _assuan_waitpid (pid_t pid, int *status, int options)
ssize_t
_assuan_simple_read (assuan_context_t ctx, void *buffer, size_t size)
{
- return pth_read (ctx->inbound.fd, buffer, size);
+ /* Fixme: For W32 we ehsould better not cast the HANDLE type to int.
+ However, this requires changes in w32pth too. */
+ return pth_read ((int)ctx->inbound.fd, buffer, size);
}
ssize_t
_assuan_simple_write (assuan_context_t ctx, const void *buffer, size_t size)
{
- return pth_write (ctx->outbound.fd, buffer, size);
+ return pth_write ((int)ctx->outbound.fd, buffer, size);
}
#ifdef HAVE_W32_SYSTEM