[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r19576 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r19576 - gnunet/src/util |
Date: |
Tue, 31 Jan 2012 17:44:35 +0100 |
Author: grothoff
Date: 2012-01-31 17:44:35 +0100 (Tue, 31 Jan 2012)
New Revision: 19576
Modified:
gnunet/src/util/disk.c
Log:
-fix for W32 pipes from bratao
Modified: gnunet/src/util/disk.c
===================================================================
--- gnunet/src/util/disk.c 2012-01-31 16:03:53 UTC (rev 19575)
+++ gnunet/src/util/disk.c 2012-01-31 16:44:35 UTC (rev 19576)
@@ -2142,9 +2142,17 @@
fd);
#else
struct GNUNET_DISK_PipeHandle *p;
+ struct GNUNET_DISK_FileHandle *fds;
BOOL ret;
HANDLE tmp_handle;
+
+ p = GNUNET_malloc (sizeof (struct GNUNET_DISK_PipeHandle) +
+ 2 * sizeof (struct GNUNET_DISK_FileHandle));
+ fds = (struct GNUNET_DISK_FileHandle *) &p[1];
+ p->fd[0] = &fds[0];
+ p->fd[1] = &fds[1];
+
/* All pipes are overlapped. If you want them to block - just
* call WriteFile() and ReadFile() with NULL overlapped pointer.
*/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r19576 - gnunet/src/util,
gnunet <=