Re: [Xen-devel] [PATCH 3/3] string: fix type use in strstr()

2019-01-07 Thread Juergen Gross
On 07/01/2019 10:40, Jan Beulich wrote: > Using plain int for string lengths, while okay for all practical > purposes, is undesirable in a generic library function. > > Take the opportunity and also move the function from being in the middle > of mem*() ones to the set of str*() ones, convert its

[Xen-devel] [PATCH 3/3] string: fix type use in strstr()

2019-01-07 Thread Jan Beulich
Using plain int for string lengths, while okay for all practical purposes, is undesirable in a generic library function. Take the opportunity and also move the function from being in the middle of mem*() ones to the set of str*() ones, convert its loop from while() to for(), and correct style.