diff options
author | Karel Zak | 2018-07-23 11:55:25 +0200 |
---|---|---|
committer | Karel Zak | 2018-07-23 11:55:25 +0200 |
commit | 892fc7d9deff6fa4849d8f79cafb3ebd55c1335e (patch) | |
tree | 65f81d0f7925b90439afb1140509c56d63c8417a /lib | |
parent | setterm: fix compiler warnings [-Wcast-qual] (diff) | |
download | kernel-qcow2-util-linux-892fc7d9deff6fa4849d8f79cafb3ebd55c1335e.tar.gz kernel-qcow2-util-linux-892fc7d9deff6fa4849d8f79cafb3ebd55c1335e.tar.xz kernel-qcow2-util-linux-892fc7d9deff6fa4849d8f79cafb3ebd55c1335e.zip |
lib/colors:: fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/colors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/colors.c b/lib/colors.c index 6ee81ccbb..f636ecc4f 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); } |