summaryrefslogtreecommitdiffstats
path: root/lib/linklist.h
diff options
context:
space:
mode:
authorhasso <hasso>2004-09-23 21:18:23 +0200
committerhasso <hasso>2004-09-23 21:18:23 +0200
commit52dc7ee65f8d887b0730abc0a5d44d27fc6ecafd (patch)
treea557339540c56dd3953c29a50ca0e48c1911efc8 /lib/linklist.h
parent2004-09-22 Paul Jakma <paul.jakma@sun.com> (diff)
downloadfrr-52dc7ee65f8d887b0730abc0a5d44d27fc6ecafd.tar.xz
frr-52dc7ee65f8d887b0730abc0a5d44d27fc6ecafd.zip
Remove usage of evil list and listnode typedefs.
Diffstat (limited to 'lib/linklist.h')
-rw-r--r--lib/linklist.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/linklist.h b/lib/linklist.h
index 303b0bced..b766420fa 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) \