From 5cf94fdf32aa3398d8b950399a80842e9338b534 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 17 Feb 2022 19:18:14 +0100 Subject: [PATCH] [html] const in get_color --- src/document/html/parser.c | 4 ++-- src/document/html/parser.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/document/html/parser.c b/src/document/html/parser.c index 06f98cec..093f74b7 100644 --- a/src/document/html/parser.c +++ b/src/document/html/parser.c @@ -53,7 +53,7 @@ static int extract_color(struct html_context *html_context, char *a, - char *attribute, color_T *rgb) + const char *attribute, color_T *rgb) { char *value; int retval; @@ -69,7 +69,7 @@ extract_color(struct html_context *html_context, char *a, int get_color(struct html_context *html_context, char *a, - char *attribute, color_T *rgb) + const char *attribute, color_T *rgb) { if (!use_document_fg_colors(html_context->options)) return -1; diff --git a/src/document/html/parser.h b/src/document/html/parser.h index e079a683..a567604f 100644 --- a/src/document/html/parser.h +++ b/src/document/html/parser.h @@ -214,7 +214,7 @@ get_image_map(char *head, char *pos, char *eof, * will only add two line-breaks for the entire run of
's. */ void ln_break(struct html_context *html_context, int n); -int get_color(struct html_context *html_context, char *a, char *c, color_T *rgb); +int get_color(struct html_context *html_context, char *a, const char *c, color_T *rgb); int get_color2(struct html_context *html_context, char *value_value, color_T *rgb);