* util/misc.c (grub_qsort_strcmp): Don't discard const attribute.

This commit is contained in:
Vladimir Serbinenko 2013-12-21 14:04:50 +01:00
parent 93bf55e616
commit f4d70fd02b
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
* util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Remove duplicate warning arguments.

View file

@ -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);
}