From: Karel Zak Date: Mon, 23 Jul 2018 09:55:25 +0000 (+0200) Subject: lib/colors:: fix compiler warnings [-Wcast-qual] X-Git-Tag: v2.33-rc1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=892fc7d9deff6fa4849d8f79cafb3ebd55c1335e;p=thirdparty%2Futil-linux.git lib/colors:: fix compiler warnings [-Wcast-qual] Signed-off-by: Karel Zak --- diff --git a/lib/colors.c b/lib/colors.c index 6ee81ccbb2..f636ecc4f4 100644 --- a/lib/colors.c +++ b/lib/colors.c @@ -120,8 +120,8 @@ static int colors_read_schemes(struct ul_color_ctl *cc); */ static int cmp_scheme_name(const void *a0, const void *b0) { - struct ul_color_scheme *a = (struct ul_color_scheme *) a0, - *b = (struct ul_color_scheme *) b0; + const struct ul_color_scheme *a = (const struct ul_color_scheme *) a0, + *b = (const struct ul_color_scheme *) b0; return strcmp(a->name, b->name); }