summaryrefslogtreecommitdiff
path: root/dll.h
diff options
context:
space:
mode:
Diffstat (limited to 'dll.h')
-rw-r--r--dll.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/dll.h b/dll.h
index 19556d0..966a047 100644
--- a/dll.h
+++ b/dll.h
@@ -102,7 +102,7 @@ static inline dll_t * dll_del(dll_t *node)
/* Insert node immediately before where,
* node is returned for convenience.
*/
-static inline dll_t * dll_pre(dll_t *where, dll_t *node)
+static inline dll_t * dll_add_pre(dll_t *where, dll_t *node)
{
node->next = where;
node->previous = where->previous;
@@ -113,10 +113,10 @@ static inline dll_t * dll_pre(dll_t *where, dll_t *node)
}
-/* Append node immediately after where,
+/* Insert node immediately after where,
* node is returned for convenience.
*/
-static inline dll_t * dll_post(dll_t *where, dll_t *node)
+static inline dll_t * dll_add_post(dll_t *where, dll_t *node)
{
node->next = where->next;
node->previous = where;
© 2021 All Rights Reserved