Conversation
miri64
left a comment
There was a problem hiding this comment.
ACK when Murdock is happy and PR received second ACK
Ooops, can you please add some unittests to tests/unittests/tests-core (I know… there are none for list.h yet. All the more reason to add some)
core/include/list.h
Outdated
| } | ||
| list = list->next; | ||
| } | ||
| return NULL; |
There was a problem hiding this comment.
No import of <stddef.h> in this file (yet ;-)), so NULL is not defined (found by Murdock)
There was a problem hiding this comment.
Instead of adding the include, I used the same strategy as in the other methods, returning list->next knowing that it will be NULL.
|
@miri64 I don't have time to write unittests for it now. I'll open an issue for that. |
|
KK. |
miri64
left a comment
There was a problem hiding this comment.
ACK and go as soon as Murdock and a second reviewer are happy.
|
Arghs, damn emb6 and its non-specific naming. Will provide a fix... |
|
#6225 was merged |
|
(please rebase) |
|
((and squash ;-)) |
|
@miri64 rebased! if I squash then I touch irrelevant lines for the remove method in the same commit, I don't think it is a good idea... |
|
kk |
|
ahhhrrrggg not again! nhdp has a list_remove... I'll check into within today 🎉 |
|
It's |
miri64
left a comment
There was a problem hiding this comment.
Though I'm not happy with including the changes to oonf here, I guess you just want to get done, so re-ACK
|
Can someone remove the |
|
🎉 thx! |
this adds a method to remove elements from a list
Required by: #6158