diff options
author | paul <paul> | 2002-12-13 21:44:27 +0000 |
---|---|---|
committer | paul <paul> | 2002-12-13 21:44:27 +0000 |
commit | fdc64b8740747007d9fc8587f1ecbd4c4e2b50c0 (patch) | |
tree | 1dd622d1305d29f9d934406298dbb35bdc4eebf4 /lib | |
parent | da773e4239ae3046bfe66b53a3f32b4948ff5724 (diff) | |
download | quagga-patch.z16681.ospfd.nssa.tar.bz2 quagga-patch.z16681.ospfd.nssa.tar.xz |
Kevin C Miller <kevinm@andrew.cmu.edu>patch.z16681.ospfd.nssa
[zebra 16681] OSPF NSSA Patches
Diffstat (limited to 'lib')
-rw-r--r-- | lib/linklist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/linklist.c b/lib/linklist.c index 5a2b6969..3cb10caf 100644 --- a/lib/linklist.c +++ b/lib/linklist.c @@ -162,6 +162,7 @@ listnode_delete (struct list *list, void *val) { struct listnode *node; + assert(list); for (node = list->head; node; node = node->next) { if (node->data == val) @@ -189,6 +190,7 @@ listnode_head (struct list *list) { struct listnode *node; + assert(list); node = list->head; if (node) @@ -203,6 +205,7 @@ list_delete_all_node (struct list *list) struct listnode *node; struct listnode *next; + assert(list); for (node = list->head; node; node = next) { next = node->next; @@ -221,6 +224,7 @@ list_delete (struct list *list) struct listnode *node; struct listnode *next; + assert(list); for (node = list->head; node; node = next) { next = node->next; @@ -237,6 +241,7 @@ listnode_lookup (struct list *list, void *data) { listnode node; + assert(list); for (node = list->head; node; nextnode (node)) if (data == getdata (node)) return node; |