]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/colors:: fix compiler warnings [-Wcast-qual]
authorKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2018 09:55:25 +0000 (11:55 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2018 09:55:25 +0000 (11:55 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/colors.c

index 6ee81ccbb20702ac17e7b743d83a1a85e2822187..f636ecc4f44b95fbb722744fc6aa7b2bbb7ef512 100644 (file)
@@ -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);
 }