summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpaul <paul>2002-12-13 21:44:27 +0000
committerpaul <paul>2002-12-13 21:44:27 +0000
commitf2c806522030d4964b4ca649637a7901751d8496 (patch)
tree0a33c81dbbf280beb2193144b5b39b703f3ca102 /lib
parentb92938a7364d220f2ca6d77a5722433159520e02 (diff)
Kevin C Miller <kevinm@andrew.cmu.edu>
[zebra 16681] OSPF NSSA Patches
Diffstat (limited to 'lib')
-rw-r--r--lib/linklist.c5
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;