Re: [dm-devel] [PATCH] libmultipath: make vector_foreach_slot_backwards work as expected

2019-05-28 Thread Benjamin Marzinski
On Mon, May 27, 2019 at 12:03:59PM +0200, Martin Wilck wrote: > On Fri, 2019-05-24 at 17:41 -0500, Benjamin Marzinski wrote: > > All of the code that uses vector_foreach_slot_backwards() treats "i" > > as > > the index of the entry "p", but the way it was coded, that wasn't the > > case. "i" was th

Re: [dm-devel] [PATCH] libmultipath: make vector_foreach_slot_backwards work as expected

2019-05-27 Thread Martin Wilck
On Fri, 2019-05-24 at 17:41 -0500, Benjamin Marzinski wrote: > All of the code that uses vector_foreach_slot_backwards() treats "i" > as > the index of the entry "p", but the way it was coded, that wasn't the > case. "i" was the number of the entry counting from 1, not 0. > > Signed-off-by: Benjam

[dm-devel] [PATCH] libmultipath: make vector_foreach_slot_backwards work as expected

2019-05-24 Thread Benjamin Marzinski
All of the code that uses vector_foreach_slot_backwards() treats "i" as the index of the entry "p", but the way it was coded, that wasn't the case. "i" was the number of the entry counting from 1, not 0. Signed-off-by: Benjamin Marzinski --- libmultipath/vector.h | 2 +- 1 file changed, 1 insert