From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1478638646-5933-1-git-send-email-yauheni.kaliuta@redhat.com> References: <1478638646-5933-1-git-send-email-yauheni.kaliuta@redhat.com> Date: Tue, 8 Nov 2016 22:24:08 -0200 Message-ID: Subject: Re: [PATCH] testsuite: fix test_array_sort pointers inderection From: Lucas De Marchi To: Yauheni Kaliuta Cc: linux-modules , Lucas De Marchi , Jessica Yu Content-Type: text/plain; charset=UTF-8 List-ID: On Tue, Nov 8, 2016 at 6:57 PM, Yauheni Kaliuta wrote: > The array elements in the tests are strings, what means "char *" > in =D0=A1. The comparation funtion takes pointers to the elements, so > the arguments become "char **". It means, that strcmp() cannot be > used directrly. > > The patch creates a wrapper on strcmp() which perfoms > dereferencing of the "char **" to supply the actual strings to > strcmp(), and uses the wrapper as a comparation function for the > qsort() call. > > Signed-off-by: Yauheni Kaliuta > --- Applied, thanks. Lucas De Marchi