1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-30 01:55:30 +00:00

[html] const in get_color

This commit is contained in:
Witold Filipczyk 2022-02-17 19:18:14 +01:00
parent 84f39d8f83
commit 5cf94fdf32
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -214,7 +214,7 @@ get_image_map(char *head, char *pos, char *eof,
* will only add two line-breaks for the entire run of <br>'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);