]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Tweaks to linked list macros
authorJosh Bailey <joshb@google.com>
Wed, 21 Mar 2012 17:00:07 +0000 (10:00 -0700)
committerAvneesh Sachdev <avneesh@opensourcerouting.org>
Sat, 7 Apr 2012 20:52:23 +0000 (13:52 -0700)
commit54dd61227352dd1dd4db4fe76dbf7d2e92522e74
treeda320cdec867ca81748f3b85b772422b386bf376
parent8ced4e82e6f417b13f4bfc09018fc51fd31058e2
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>
lib/linklist.h