commit | 54dd61227352dd1dd4db4fe76dbf7d2e92522e74 | [log] [tgz] |
---|---|---|
author | Josh Bailey <joshb@google.com> | Wed Mar 21 10:00:07 2012 -0700 |
committer | Avneesh Sachdev <avneesh@opensourcerouting.org> | Sat Apr 07 13:52:23 2012 -0700 |
tree | da320cdec867ca81748f3b85b772422b386bf376 | |
parent | 8ced4e82e6f417b13f4bfc09018fc51fd31058e2 [diff] |
lib: Tweaks to linked list macros * lib/linklist.h - Change the listnextnode, listhead and listtail macros so that they allow the list pointer to be NULL. - Modify the ALL_LIST_ELEMENTS* macros such that they clear the data pointer at the beginning and end of the loop. From: Josh Bailey <joshb@google.com> Signed-off-by: Avneesh Sachdev <avneesh@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@diac24.net>