From f4d70fd02beb17e4608ff84e422b475d138dd230 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sat, 21 Dec 2013 14:04:50 +0100 Subject: [PATCH] * util/misc.c (grub_qsort_strcmp): Don't discard const attribute. --- ChangeLog | 4 ++++ util/misc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e47a9fe3a..9bb282ed6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-12-21 Vladimir Serbinenko + + * util/misc.c (grub_qsort_strcmp): Don't discard const attribute. + 2013-12-21 Vladimir Serbinenko * configure.ac: Remove duplicate warning arguments. diff --git a/util/misc.c b/util/misc.c index 386d8472f..c5541ca95 100644 --- a/util/misc.c +++ b/util/misc.c @@ -262,6 +262,6 @@ grub_register_exported_symbols (void) int grub_qsort_strcmp (const void *p1, const void *p2) { - return strcmp(*(char **)p1, *(char **)p2); + return strcmp(*(char *const *)p1, *(char *const *)p2); }