From: Remi Collet Date: Mon, 31 Dec 2012 13:53:22 +0000 (+0000) Subject: Fix php_http_message.c:136:14: warning: comparison between 'enum ' and... X-Git-Tag: RELEASE_2_1_0_RC3~10^2^2~48 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f05a032e5e994a8b1ea8b5ab0291f1d1d6d42355;p=m6w6%2Fext-http Fix php_http_message.c:136:14: warning: comparison between 'enum ' and 'php_http_message_parser_state_t' --- diff --git a/php_http_message.c b/php_http_message.c index 3d18e28..3ac9655 100644 --- a/php_http_message.c +++ b/php_http_message.c @@ -133,7 +133,7 @@ PHP_HTTP_API php_http_message_t *php_http_message_parse(php_http_message_t *msg, if (greedy) { flags |= PHP_HTTP_MESSAGE_PARSER_GREEDY; } - if (FAILURE == php_http_message_parser_parse(&p, &buf, flags, &msg)) { + if (PHP_HTTP_MESSAGE_PARSER_STATE_FAILURE == php_http_message_parser_parse(&p, &buf, flags, &msg)) { if (free_msg) { php_http_message_free(&msg); }