diff --git a/src/document/html/parser/parse.c b/src/document/html/parser/parse.c index 5d6e74fc1..7a675a3a9 100644 --- a/src/document/html/parser/parse.c +++ b/src/document/html/parser/parse.c @@ -250,7 +250,7 @@ parse_error: * It will return a positive integer value on success, * or -1 on error. */ int -get_num(char *a, char *name, int cp) +get_num(char *a, const char *name, int cp) { char *al = get_attr_val(a, name, cp); int result = -1; diff --git a/src/document/html/parser/parse.h b/src/document/html/parser/parse.h index c73ee8043..30222c5c6 100644 --- a/src/document/html/parser/parse.h +++ b/src/document/html/parser/parse.h @@ -64,7 +64,7 @@ typedef void (element_handler_T)(struct html_context *, char *attr, int parse_element(char *, char *, char **, int *, char **, char **); -int get_num(char *, char *, int); +int get_num(char *, const char *, int); int get_num2(char *); int get_width(char *, char *, int, struct html_context *);