[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17026 - libmicrohttpd/src/daemon
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17026 - libmicrohttpd/src/daemon |
Date: |
Mon, 26 Sep 2011 22:28:50 +0200 |
Author: grothoff
Date: 2011-09-26 22:28:50 +0200 (Mon, 26 Sep 2011)
New Revision: 17026
Modified:
libmicrohttpd/src/daemon/daemon.c
Log:
w32/plibc patch from LRN
Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c 2011-09-26 20:28:16 UTC (rev 17025)
+++ libmicrohttpd/src/daemon/daemon.c 2011-09-26 20:28:50 UTC (rev 17026)
@@ -2001,7 +2001,7 @@
#ifndef HAVE_LISTEN_SHUTDOWN
retVal->wpipe[0] = -1;
retVal->wpipe[1] = -1;
- if (0 != pipe (retVal->wpipe))
+ if (0 != PIPE (retVal->wpipe))
{
#if HAVE_MESSAGES
FPRINTF(stderr,
@@ -2019,8 +2019,8 @@
FPRINTF(stderr,
"file descriptor for control pipe exceeds maximum value\n");
#endif
- close (retVal->wpipe[0]);
- close (retVal->wpipe[1]);
+ CLOSE (retVal->wpipe[0]);
+ CLOSE (retVal->wpipe[1]);
free (retVal);
return NULL;
}
@@ -2535,7 +2535,7 @@
SHUTDOWN (fd, SHUT_RDWR);
#else
if (daemon->wpipe[1] != -1)
- write (daemon->wpipe[1], "e", 1);
+ WRITE (daemon->wpipe[1], "e", 1);
#endif
#if DEBUG_CLOSE
#if HAVE_MESSAGES
@@ -2615,9 +2615,9 @@
/* just to be sure, remove the one char we
wrote into the pipe */
- (void) read (daemon->wpipe[0], &c, 1);
- close (daemon->wpipe[0]);
- close (daemon->wpipe[1]);
+ (void) READ (daemon->wpipe[0], &c, 1);
+ CLOSE (daemon->wpipe[0]);
+ CLOSE (daemon->wpipe[1]);
}
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17026 - libmicrohttpd/src/daemon,
gnunet <=