summaryrefslogtreecommitdiffstats
path: root/lib/linklist.c
diff options
context:
space:
mode:
authorgdt <gdt>2003-12-22 17:32:15 +0100
committergdt <gdt>2003-12-22 17:32:15 +0100
commit76398034067abd80e174fea9d0d6c619de7cc679 (patch)
treeda9da898e4449f5ee7529193bb468cac4a6354e3 /lib/linklist.c
parentcomments about struct list (diff)
downloadfrr-76398034067abd80e174fea9d0d6c619de7cc679.tar.xz
frr-76398034067abd80e174fea9d0d6c619de7cc679.zip
note that order of = items is undefined, probably
Diffstat (limited to 'lib/linklist.c')
-rw-r--r--lib/linklist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/linklist.c b/lib/linklist.c
index d6eeab417..9c1b297ae 100644
--- a/lib/linklist.c
+++ b/lib/linklist.c
@@ -85,6 +85,10 @@ listnode_add (struct list *list, void *val)
* 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.
+ *
+ * XXX not sure this is right:
+ * It is currently undefined whether new nodes for which cmp returns 0
+ * should be added before or after any existing nodes.
*/
void
listnode_add_sort (struct list *list, void *val)