chiark / gitweb /
list: LIST_INSERT_BEFORE: update head if necessary (#4261)
authorMichael Olbrich <m.olbrich@pengutronix.de>
Tue, 4 Oct 2016 14:15:37 +0000 (16:15 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:54 +0000 (08:50 +0200)
commite4818ba5276510602ff5550a1e5a058fca51e9d4
treec42ce5e3fb7859379e500dac34d3b1d66e2fbf06
parent5d3c70eec7861aa623adeac659ac4a6f890557d2
list: LIST_INSERT_BEFORE: update head if necessary (#4261)

If the new item is inserted before the first item in the list, then the
head must be updated as well.
Add a test to the list unit test to check for this.
src/basic/list.h