aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-06-28 05:22:47 +0000
committerYang Tse <yangsita@gmail.com>2006-06-28 05:22:47 +0000
commitb01286d28049907def2b9b943c5c337cb06048b3 (patch)
tree002b47c3025ebb1bb83e927010b3930ec651f6f8
parent64f72c22b99e5b130eee08c704d80b99c48622ad (diff)
fix better minor compiler warning
-rw-r--r--lib/multi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 9b9929dc9..9aee31ddd 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -1083,8 +1083,11 @@ static void singlesocket(struct Curl_multi *multi,
continue;
}
- action = ((current.action & GETSOCK_READSOCK(i))?CURL_POLL_IN:0) +
- ((current.action & GETSOCK_WRITESOCK(i))?CURL_POLL_OUT:0);
+ action = CURL_POLL_NONE;
+ if(current.action & GETSOCK_READSOCK(i))
+ action |= CURL_POLL_IN;
+ if(current.action & GETSOCK_WRITESOCK(i))
+ action |= CURL_POLL_OUT;
}
/* call the callback with this new info */