fix better minor compiler warning

This commit is contained in:
Yang Tse 2006-06-28 05:22:47 +00:00
parent 64f72c22b9
commit b01286d280
1 changed files with 5 additions and 2 deletions

View File

@ -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 */