From cbb194ea8cdf8e4b26ee4f59c0b72f5c96a85c15 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 27 Aug 2010 14:20:58 +0200 Subject: [PATCH] Replace C++ style comments with C comments so it compiles with `gcc -ansi -Wall` --- http_parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/http_parser.c b/http_parser.c index 334c3d0..e94075d 100644 --- a/http_parser.c +++ b/http_parser.c @@ -600,7 +600,7 @@ size_t http_parser_execute (http_parser *parser, if (ch == ' ' && matcher[index] == '\0') { state = s_req_spaces_before_url; } else if (ch == matcher[index]) { - ; // nada + ; /* nada */ } else if (parser->method == HTTP_CONNECT) { if (index == 1 && ch == 'H') { parser->method = HTTP_CHECKOUT; @@ -772,7 +772,7 @@ size_t http_parser_execute (http_parser *parser, switch (ch) { case '?': - break; // XXX ignore extra '?' ... is this right? + break; /* XXX ignore extra '?' ... is this right? */ case ' ': CALLBACK(url); state = s_req_http_start; @@ -802,7 +802,7 @@ size_t http_parser_execute (http_parser *parser, switch (ch) { case '?': - // allow extra '?' in query string + /* allow extra '?' in query string */ break; case ' ': CALLBACK(url); @@ -1376,7 +1376,7 @@ size_t http_parser_execute (http_parser *parser, } } - // Exit, the rest of the connect is in a different protocol. + /* Exit, the rest of the connect is in a different protocol. */ if (parser->upgrade) { CALLBACK2(message_complete); return (p - data);