projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64f72c2
)
fix better minor compiler warning
author
Yang Tse
<yangsita@gmail.com>
Wed, 28 Jun 2006 05:22:47 +0000
(
05:22
+0000)
committer
Yang Tse
<yangsita@gmail.com>
Wed, 28 Jun 2006 05:22:47 +0000
(
05:22
+0000)
lib/multi.c
patch
|
blob
|
history
diff --git
a/lib/multi.c
b/lib/multi.c
index 9b9929dc9ea743f7fd3b66f9b1b20cd70c7454f7..9aee31ddd557a2ae63a11fa3f8f04f85e43e6a75 100644
(file)
--- 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 */