1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00

const in decode_color

(cherry picked from commit f02e471762)
This commit is contained in:
Kalle Olavi Niemitalo 2008-01-26 17:25:34 +02:00 committed by Kalle Olavi Niemitalo
parent 2a1fb06d54
commit b105694db3
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ free_colors_lookup(void)
}
int
decode_color(unsigned char *str, int slen, color_T *color)
decode_color(const unsigned char *str, int slen, color_T *color)
{
if (*str == '#' && (slen == 7 || slen == 4)) {
unsigned char buffer[7];

View File

@ -13,7 +13,7 @@ struct color_pair {
/* Decode the color string. */
/* The color string can either contain '#FF0044' style declarations or
* color names. */
int decode_color(unsigned char *str, int slen, color_T *color);
int decode_color(const unsigned char *str, int slen, color_T *color);
/* Returns a string containing the color info. If no ``English'' name can be
* found the hex color (#rrggbb) is returned in the given buffer. */