summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdt <gdt>2003-12-22 16:32:15 +0000
committergdt <gdt>2003-12-22 16:32:15 +0000
commit546c6879466b185aadf1f78fcb392aee79838c83 (patch)
tree415fd3afec3cc0303826d3a5b1813129e0dd0f27
parent6fc559d11392b1e5454e3867ad1578cee007b532 (diff)
downloadquagga-546c6879466b185aadf1f78fcb392aee79838c83.tar.bz2
quagga-546c6879466b185aadf1f78fcb392aee79838c83.tar.xz
note that order of = items is undefined, probably
-rw-r--r--lib/linklist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/linklist.c b/lib/linklist.c
index d6eeab41..9c1b297a 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)