netsurf: refacot again to reuse wr_create_doc_dom_from_file

This commit is contained in:
Pierre Tachoire
2023-10-04 17:39:34 +02:00
parent b7aecb72f4
commit a8079ad60e
2 changed files with 10 additions and 16 deletions

View File

@@ -59,7 +59,7 @@ dom_document *wr_create_doc_dom_from_string(const char *html)
* \param file The file path
* \return pointer to DOM document, or NULL on error
*/
dom_document *wr_create_doc_dom_from_file(char *filename)
dom_document *wr_create_doc_dom_from_file(const char *filename)
{
size_t buffer_size = 1024;
dom_hubbub_parser *parser = NULL;