]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/linklist.c
2004-07-23 Paul Jakma <paul@dishone.st>
[mirror_frr.git] / lib / linklist.c
index 3cb10caf1703ab7fa65676c6120df47c07a5e227..1c95da4a613083e299b8d393c37ef3b9c85df6e1 100644 (file)
@@ -80,7 +80,12 @@ listnode_add (struct list *list, void *val)
   list->count++;
 }
 
-/* Add new node with sort function. */
+/*
+ * Add a node to the list.  If the list was sorted according to the
+ * cmp function, insert a new node with the given val such that the
+ * list remains sorted.  The new node is always inserted; there is no
+ * notion of omitting duplicates.
+ */
 void
 listnode_add_sort (struct list *list, void *val)
 {