summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-01-29 21:23:51 +0100
committerRichard Braun <rbraun@sceen.net>2018-01-29 21:23:51 +0100
commite6145fc66fa0398139d80ec00a9578001089b4df (patch)
tree4d42dbb7d23b3ffc69bd51b682a6dbe19ad2d2cb /src
parentdffd4c0654fd3c12744a9a1f939ba33a0a46b0c4 (diff)
slist: improve slist_remove description
Diffstat (limited to 'src')
-rw-r--r--src/slist.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slist.h b/src/slist.h
index 5dbe537..f6138e2 100644
--- a/src/slist.h
+++ b/src/slist.h
@@ -204,8 +204,8 @@ slist_insert_after(struct slist *list, struct slist_node *node,
* Remove a node from a list.
*
* The prev argument must point to the node immediately preceding the target
- * node. It may safely denote the end of the given list, in which case the
- * first node is removed.
+ * node. It may safely denote the end of the given list (NULL), in which case
+ * the first node is removed.
*/
static inline void
slist_remove(struct slist *list, struct slist_node *prev)