mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
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:
parent
ec65c42052
commit
24b521499a
2
http.c
2
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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user