evhttp_have_expect(): fix -Wlogical-not-parentheses

../http.c:589:6: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
        if (!req->kind == EVHTTP_REQUEST || !REQ_VERSION_ATLEAST(req, 1, 1))
                        ^          ~~
This commit is contained in:
Azat Khuzhin 2016-03-25 10:21:48 +03:00
parent ec65c42052
commit 24b521499a

2
http.c
View File

@ -586,7 +586,7 @@ static enum expect evhttp_have_expect(struct evhttp_request *req, int input)
const char *expect;
struct evkeyvalq *h = input ? req->input_headers : req->output_headers;
if (!req->kind == EVHTTP_REQUEST || !REQ_VERSION_ATLEAST(req, 1, 1))
if (!(req->kind == EVHTTP_REQUEST) || !REQ_VERSION_ATLEAST(req, 1, 1))
return NO;
expect = evhttp_find_header(h, "Expect");