From 52dc7ee65f8d887b0730abc0a5d44d27fc6ecafd Mon Sep 17 00:00:00 2001 From: hasso Date: Thu, 23 Sep 2004 19:18:23 +0000 Subject: Remove usage of evil list and listnode typedefs. --- lib/linklist.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'lib/linklist.h') diff --git a/lib/linklist.h b/lib/linklist.h index 303b0bce..b766420f 100644 --- a/lib/linklist.h +++ b/lib/linklist.h @@ -22,9 +22,6 @@ #ifndef _ZEBRA_LINKLIST_H #define _ZEBRA_LINKLIST_H -typedef struct list *list; -typedef struct listnode *listnode; - struct listnode { struct listnode *next; @@ -68,12 +65,12 @@ void list_delete (struct list *); void list_delete_all_node (struct list *); /* For ospfd and ospf6d. */ -void list_delete_node (list, listnode); +void list_delete_node (struct list *, struct listnode *); /* For ospf_spf.c */ -void list_add_node_prev (list, listnode, void *); -void list_add_node_next (list, listnode, void *); -void list_add_list (list, list); +void list_add_node_prev (struct list *, struct listnode *, void *); +void list_add_node_next (struct list *, struct listnode *, void *); +void list_add_list (struct list *, struct list *); /* List iteration macro. */ #define LIST_LOOP(L,V,N) \ -- cgit v1.2.1