Re: [PATCH] add grub_qsort_strcmp to use when sorting array of strings

2013-12-01 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 30.11.2013 11:59, Andrey Borzenkov wrote: > В Sat, 30 Nov 2013 11:39:12 +0100 > Vladimir 'φ-coder/phcoder' Serbinenko пишет: > >> On 29.11.2013 18:01, Andrey Borzenkov wrote: >>> Compare function used in qsort gets arguments by reference, so strcmp >>> cannot be used directly - it expects poin

Re: [PATCH] add grub_qsort_strcmp to use when sorting array of strings

2013-11-30 Thread Andrey Borzenkov
В Sat, 30 Nov 2013 11:39:12 +0100 Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 29.11.2013 18:01, Andrey Borzenkov wrote: > > 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

Re: [PATCH] add grub_qsort_strcmp to use when sorting array of strings

2013-11-30 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 29.11.2013 18:01, Andrey Borzenkov wrote: > 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 i

[PATCH] add grub_qsort_strcmp to use when sorting array of strings

2013-11-29 Thread Andrey Borzenkov
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