[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36893 - libmicrohttpd/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36893 - libmicrohttpd/src/include |
Date: |
Fri, 5 Feb 2016 14:15:18 +0100 |
Author: Karlson2k
Date: 2016-02-05 14:15:18 +0100 (Fri, 05 Feb 2016)
New Revision: 36893
Modified:
libmicrohttpd/src/include/platform_interface.h
Log:
Faster drain pipes.
Modified: libmicrohttpd/src/include/platform_interface.h
===================================================================
--- libmicrohttpd/src/include/platform_interface.h 2016-02-05 13:15:14 UTC
(rev 36892)
+++ libmicrohttpd/src/include/platform_interface.h 2016-02-05 13:15:18 UTC
(rev 36893)
@@ -164,9 +164,9 @@
/* MHD_pipe_drain_ drain data from real pipe (!MHD_DONT_USE_PIPES) /
* drain data from emulated pipe (MHD_DONT_USE_PIPES) */
#ifndef MHD_DONT_USE_PIPES
-#define MHD_pipe_drain_(fd) do { char tmp; while (0 < read((fd), &tmp, sizeof
(tmp))) ; } while (0)
+#define MHD_pipe_drain_(fd) do { long tmp; while (0 < read((fd), (void*)&tmp,
sizeof (tmp))) ; } while (0)
#else
-#define MHD_pipe_drain_(fd) do { char tmp; while (0 < recv((fd), &tmp, sizeof
(tmp), 0)) ; } while (0)
+#define MHD_pipe_drain_(fd) do { long tmp; while (0 < recv((fd), (void*)&tmp,
sizeof (tmp), 0)) ; } while (0)
#endif
/* MHD_pipe_close_(fd) close any FDs (non-W32) /
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36893 - libmicrohttpd/src/include,
gnunet <=