]> git.ipfire.org Git - thirdparty/grub.git/commit
add grub_qsort_strcmp to use when sorting array of strings
authorAndrey Borzenkov <arvidjaar@gmail.com>
Sat, 7 Dec 2013 10:29:00 +0000 (14:29 +0400)
committerAndrey Borzenkov <arvidjaar@gmail.com>
Sat, 7 Dec 2013 10:29:00 +0000 (14:29 +0400)
commit3100cdc7f9983636fb86cb4e29d995ce2ebc12dd
tree8c4735679b13677cfb98b8ddb5c7b3c92a07e785
parentad73cc3312476346b14a1925dadb16fd55839df7
add grub_qsort_strcmp to use when sorting array of strings

Compare function used in qsort gets arguments by reference, so strcmp
cannot be used directly - it expects pointer to char, but gets pointer
to pointer to char.

Introduce new helper grub_qsort_strcmp and use it in grub-install.
This helper is going to be used in a couple more places as well so
add it to global file, not in grub-install.c.
ChangeLog
include/grub/util/misc.h
util/grub-install.c
util/misc.c