From 24b521499ab94ec03e4c9068c5e79ad0afcdc94c Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Fri, 25 Mar 2016 10:21:48 +0300 Subject: [PATCH] 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)) ^ ~~ --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index ac146075e1..610d0f9c51 100644 --- a/http.c +++ b/http.c @@ -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");