aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/hiperfifo.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-11-19 15:31:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-11-19 15:31:55 +0000
commit0b489c7e611bc0bb5e224fc5e680fb7ae57a0557 (patch)
treefc8fdaf9309d53ddb1be143621382221c3758f17 /docs/examples/hiperfifo.c
parent22d4db1cf2f2661c6d7292c9545051937be25ed2 (diff)
and now it compiles too!
Diffstat (limited to 'docs/examples/hiperfifo.c')
-rw-r--r--docs/examples/hiperfifo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/examples/hiperfifo.c b/docs/examples/hiperfifo.c
index d19048506..4102408ce 100644
--- a/docs/examples/hiperfifo.c
+++ b/docs/examples/hiperfifo.c
@@ -182,8 +182,8 @@ static void event_cb(int fd, short kind, void *userp)
CURLMcode rc;
int action =
- (kind&EV_READ:CURL_CSELECT_IN)|
- (kind&EV_WRITE:CURL_CSELECT_OUT);
+ (kind&EV_READ?CURL_CSELECT_IN:0)|
+ (kind&EV_WRITE?CURL_CSELECT_OUT:0);
do {
rc = curl_multi_socket_action(g->multi, fd, action, &g->still_running);
@@ -404,7 +404,6 @@ static int init_fifo (GlobalInfo *g)
int main(int argc, char **argv)
{
GlobalInfo g;
- CURLMcode rc;
(void)argc;
(void)argv;