X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fprotocol%2Fpedantic.c;h=ac16099ea10a4755425d40c5f49d303a0284276b;hb=4cd075fbd0fab78e393c1559db340a221196a006;hp=d6304396b3708a710954e20786e73bfd1e5954ce;hpb=771170f522f2186b7fb0cde6052dbe37c1a9f1b7;p=awesomized%2Flibmemcached diff --git a/libmemcached/protocol/pedantic.c b/libmemcached/protocol/pedantic.c index d6304396..ac16099e 100644 --- a/libmemcached/protocol/pedantic.c +++ b/libmemcached/protocol/pedantic.c @@ -2,12 +2,11 @@ #include "libmemcached/protocol/common.h" #include -#include #include #define ensure(a) if (!(a)) { return false; } -bool memcached_binary_protocol_pedantic_check_request(protocol_binary_request_header *request) +bool memcached_binary_protocol_pedantic_check_request(const protocol_binary_request_header *request) { ensure(request->request.magic == PROTOCOL_BINARY_REQ); ensure(request->request.datatype == PROTOCOL_BINARY_RAW_BYTES); @@ -99,8 +98,8 @@ bool memcached_binary_protocol_pedantic_check_request(protocol_binary_request_he return true; } -bool memcached_binary_protocol_pedantic_check_response(protocol_binary_request_header *request, - protocol_binary_response_header *response) +bool memcached_binary_protocol_pedantic_check_response(const protocol_binary_request_header *request, + const protocol_binary_response_header *response) { ensure(response->response.magic == PROTOCOL_BINARY_RES); ensure(response->response.datatype == PROTOCOL_BINARY_RAW_BYTES);