Diff for /embedaddon/quagga/lib/linklist.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 17:26:12 version 1.1.1.2, 2016/11/02 10:09:10
Line 23 Line 23
   
 #include "linklist.h"  #include "linklist.h"
 #include "memory.h"  #include "memory.h"
 /* Allocate new list. */  /* Allocate new list. */
 struct list *  struct list *
 list_new (void)  list_new (void)
Line 51  listnode_free (struct listnode *node) Line 51  listnode_free (struct listnode *node)
 {  {
   XFREE (MTYPE_LINK_NODE, node);    XFREE (MTYPE_LINK_NODE, node);
 }  }
 /* Add new data to the list. */  /* Add new data to the list. */
 void  void
 listnode_add (struct list *list, void *val)  listnode_add (struct list *list, void *val)
Line 159  listnode_add_after (struct list *list, struct listnode Line 159  listnode_add_after (struct list *list, struct listnode
   list->count++;    list->count++;
 }  }
   
   /* Move given listnode to tail of the list */
   void
   listnode_move_to_tail (struct list *l, struct listnode *n)
   {
     LISTNODE_DETACH(l,n);
     LISTNODE_ATTACH(l,n);
   }
   
 /* Delete specific date pointer from the list. */  /* Delete specific date pointer from the list. */
 void  void
Line 242  listnode_lookup (struct list *list, void *data) Line 249  listnode_lookup (struct list *list, void *data)
       return node;        return node;
   return NULL;    return NULL;
 }  }
 /* Delete the node from list.  For ospfd and ospf6d. */  /* Delete the node from list.  For ospfd and ospf6d. */
 void  void
 list_delete_node (struct list *list, struct listnode *node)  list_delete_node (struct list *list, struct listnode *node)
Line 258  list_delete_node (struct list *list, struct listnode * Line 265  list_delete_node (struct list *list, struct listnode *
   list->count--;    list->count--;
   listnode_free (node);    listnode_free (node);
 }  }
 /* ospf_spf.c */  /* ospf_spf.c */
 void  void
 list_add_node_prev (struct list *list, struct listnode *current, void *val)  list_add_node_prev (struct list *list, struct listnode *current, void *val)

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>