diff options
author | 2015-12-22 13:49:30 -0800 | |
---|---|---|
committer | 2015-12-22 13:49:30 -0800 | |
commit | 7536af02cf218f8dcb1368bec6d86c65db95c9b4 (patch) | |
tree | cd560e1321aed28504aca5358dabbf49692a0956 /src/core/httpcli/parser.c | |
parent | 2d2963e5e919128929e8a62a17fbbc9f3fd684d9 (diff) |
Eliminate gpr_ int types - and insist on C99 variants instead
Diffstat (limited to 'src/core/httpcli/parser.c')
-rw-r--r-- | src/core/httpcli/parser.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/httpcli/parser.c b/src/core/httpcli/parser.c index 046770c094..c314f025a0 100644 --- a/src/core/httpcli/parser.c +++ b/src/core/httpcli/parser.c @@ -40,9 +40,9 @@ #include <grpc/support/useful.h> static int handle_response_line(grpc_httpcli_parser *parser) { - gpr_uint8 *beg = parser->cur_line; - gpr_uint8 *cur = beg; - gpr_uint8 *end = beg + parser->cur_line_length; + uint8_t *beg = parser->cur_line; + uint8_t *cur = beg; + uint8_t *end = beg + parser->cur_line_length; if (cur == end || *cur++ != 'H') goto error; if (cur == end || *cur++ != 'T') goto error; @@ -77,9 +77,9 @@ static char *buf2str(void *buffer, size_t length) { } static int add_header(grpc_httpcli_parser *parser) { - gpr_uint8 *beg = parser->cur_line; - gpr_uint8 *cur = beg; - gpr_uint8 *end = beg + parser->cur_line_length; + uint8_t *beg = parser->cur_line; + uint8_t *cur = beg; + uint8_t *end = beg + parser->cur_line_length; grpc_httpcli_header hdr = {NULL, NULL}; GPR_ASSERT(cur != end); @@ -146,7 +146,7 @@ static int finish_line(grpc_httpcli_parser *parser) { return 1; } -static int addbyte(grpc_httpcli_parser *parser, gpr_uint8 byte) { +static int addbyte(grpc_httpcli_parser *parser, uint8_t byte) { switch (parser->state) { case GRPC_HTTPCLI_INITIAL_RESPONSE: case GRPC_HTTPCLI_HEADERS: |