diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-10-11 15:20:53 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-10-11 15:20:53 +0000 |
commit | 21ffb5e8420d6b4284932ae0eb6021f2118e21be (patch) | |
tree | b58520badf3dfc15c956e77af52e4e266ecb7df1 /src/microhttpd/mhd_itc.c | |
parent | b6ae5bf9b70c867664daced6f24b6ba28ebc6c82 (diff) | |
download | libmicrohttpd-21ffb5e8420d6b4284932ae0eb6021f2118e21be.tar.gz libmicrohttpd-21ffb5e8420d6b4284932ae0eb6021f2118e21be.zip |
Renamed "pipe" to "itc" as it actually more some kind of channel, not always pipe.
Used typedef for "itc" type.
Diffstat (limited to 'src/microhttpd/mhd_itc.c')
-rw-r--r-- | src/microhttpd/mhd_itc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_itc.c b/src/microhttpd/mhd_itc.c index e6cbd875..14e474d8 100644 --- a/src/microhttpd/mhd_itc.c +++ b/src/microhttpd/mhd_itc.c | |||
@@ -36,13 +36,13 @@ | |||
36 | #ifdef _MHD_ITC_EVENTFD | 36 | #ifdef _MHD_ITC_EVENTFD |
37 | 37 | ||
38 | int | 38 | int |
39 | MHD_pipe_write_ (struct MHD_Pipe pip, | 39 | MHD_pipe_write_ (MHD_itc_ pip, |
40 | const void *ptr, | 40 | const void *ptr, |
41 | size_t sz) | 41 | size_t sz) |
42 | { | 42 | { |
43 | uint64_t val = 1; | 43 | uint64_t val = 1; |
44 | if (sizeof (val) != | 44 | if (sizeof (val) != |
45 | write (pip.event_fd, | 45 | write (pip, |
46 | &val, | 46 | &val, |
47 | sizeof (val))) | 47 | sizeof (val))) |
48 | MHD_PANIC (_("Failed to write to eventfd\n")); | 48 | MHD_PANIC (_("Failed to write to eventfd\n")); |
@@ -62,7 +62,7 @@ MHD_pipe_write_ (struct MHD_Pipe pip, | |||
62 | * @return non-zero if succeeded, zero otherwise | 62 | * @return non-zero if succeeded, zero otherwise |
63 | */ | 63 | */ |
64 | int | 64 | int |
65 | MHD_itc_nonblocking_ (struct MHD_Pipe pip) | 65 | MHD_itc_nonblocking_ (MHD_itc_ itc) |
66 | { | 66 | { |
67 | unsigned int i; | 67 | unsigned int i; |
68 | 68 | ||
@@ -70,7 +70,7 @@ MHD_itc_nonblocking_ (struct MHD_Pipe pip) | |||
70 | { | 70 | { |
71 | int flags; | 71 | int flags; |
72 | 72 | ||
73 | flags = fcntl (pip.fd[i], | 73 | flags = fcntl (itc.fd[i], |
74 | F_GETFL); | 74 | F_GETFL); |
75 | if (-1 == flags) | 75 | if (-1 == flags) |
76 | return 0; | 76 | return 0; |