diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-04 00:41:53 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-04 00:41:53 +0000 |
commit | 44b480394805d19b9958c1c7bb72610eb2c08973 (patch) | |
tree | d7dd7f173db524330cfada30e082042b698d727b | |
parent | a70196587f7213a6b25791b3faa6590674829ba1 (diff) | |
download | libhubbub-44b480394805d19b9958c1c7bb72610eb2c08973.tar.gz libhubbub-44b480394805d19b9958c1c7bb72610eb2c08973.tar.bz2 |
Constify
svn path=/trunk/hubbub/; revision=7044
-rw-r--r-- | include/hubbub/parser.h | 4 | ||||
-rw-r--r-- | src/parser.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/hubbub/parser.h b/include/hubbub/parser.h index 5716d0d..6ddf8cf 100644 --- a/include/hubbub/parser.h +++ b/include/hubbub/parser.h @@ -69,11 +69,11 @@ hubbub_error hubbub_parser_setopt(hubbub_parser *parser, /* Pass a chunk of data to a hubbub parser for parsing */ /* This data is encoded in the input charset */ hubbub_error hubbub_parser_parse_chunk(hubbub_parser *parser, - uint8_t *data, size_t len); + const uint8_t *data, size_t len); /* Pass a chunk of extraneous data to a hubbub parser for parsing */ /* This data is UTF-8 encoded */ hubbub_error hubbub_parser_parse_extraneous_chunk(hubbub_parser *parser, - uint8_t *data, size_t len); + const uint8_t *data, size_t len); /* Inform the parser that the last chunk of data has been parsed */ hubbub_error hubbub_parser_completed(hubbub_parser *parser); diff --git a/src/parser.c b/src/parser.c index 79b10ab..5f15d19 100644 --- a/src/parser.c +++ b/src/parser.c @@ -208,7 +208,7 @@ hubbub_error hubbub_parser_setopt(hubbub_parser *parser, * \return HUBBUB_OK on success, appropriate error otherwise */ hubbub_error hubbub_parser_parse_chunk(hubbub_parser *parser, - uint8_t *data, size_t len) + const uint8_t *data, size_t len) { parserutils_error perror; hubbub_error error; @@ -254,7 +254,7 @@ hubbub_error hubbub_parser_parse_chunk(hubbub_parser *parser, * \return HUBBUB_OK on success, appropriate error otherwise */ hubbub_error hubbub_parser_parse_extraneous_chunk(hubbub_parser *parser, - uint8_t *data, size_t len) + const uint8_t *data, size_t len) { hubbub_error error; |