Permalink
Browse files

Replace C++ style comments with C comments so it compiles with `gcc -…

…ansi -Wall`
  • Loading branch information...
1 parent c30ea45 commit cbb194ea8cdf8e4b26ee4f59c0b72f5c96a85c15 @bnoordhuis bnoordhuis committed with ry Aug 27, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 http_parser.c
View
@@ -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);

0 comments on commit cbb194e

Please sign in to comment.