Fixes build on MSVC.

v0.10
Andre Caron 13 years ago
parent eb04bbe1fa
commit 051d6fe219

@ -960,7 +960,7 @@ size_t http_parser_execute (http_parser *parser,
MARK(url);
parser->state = parse_url_char(
parser->state, ch, parser->method == HTTP_CONNECT);
(enum state)parser->state, ch, parser->method == HTTP_CONNECT);
if (parser->state == s_dead) {
SET_ERRNO(HPE_INVALID_URL);
goto error;
@ -982,7 +982,7 @@ size_t http_parser_execute (http_parser *parser,
goto error;
default:
parser->state = parse_url_char(
parser->state, ch, parser->method == HTTP_CONNECT);
(enum state)parser->state, ch, parser->method == HTTP_CONNECT);
if (parser->state == s_dead) {
SET_ERRNO(HPE_INVALID_URL);
goto error;
@ -1021,7 +1021,7 @@ size_t http_parser_execute (http_parser *parser,
break;
default:
parser->state = parse_url_char(
parser->state, ch, parser->method == HTTP_CONNECT);
(enum state)parser->state, ch, parser->method == HTTP_CONNECT);
if (parser->state == s_dead) {
SET_ERRNO(HPE_INVALID_URL);
goto error;

Loading…
Cancel
Save