Skip to content

Commit

Permalink
evhttp_have_expect(): fix -Wlogical-not-parentheses
Browse files Browse the repository at this point in the history
../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))
                        ^          ~~
  • Loading branch information
azat committed Mar 25, 2016
1 parent ec65c42 commit 24b5214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.c
Expand Up @@ -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");
Expand Down

0 comments on commit 24b5214

Please sign in to comment.