summaryrefslogtreecommitdiffstats
path: root/lib/linklist.h
diff options
context:
space:
mode:
authorhasso <hasso>2004-09-23 19:18:23 +0000
committerhasso <hasso>2004-09-23 19:18:23 +0000
commit4e920a4d6e1f8097d02ea84c85edaa951d0fdb4f (patch)
treea91cf8638374956315b62b8ef31dae29f90ee07e /lib/linklist.h
parentb1184fa423d676dddeba855994ec32758fda1d31 (diff)
downloadquagga-4e920a4d6e1f8097d02ea84c85edaa951d0fdb4f.tar.bz2
quagga-4e920a4d6e1f8097d02ea84c85edaa951d0fdb4f.tar.xz
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 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) \