summaryrefslogtreecommitdiff
path: root/lib/atomlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/atomlist.c')
-rw-r--r--lib/atomlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/atomlist.c b/lib/atomlist.c
index 8169ba9eb4..b7c9516a00 100644
--- a/lib/atomlist.c
+++ b/lib/atomlist.c
@@ -18,6 +18,8 @@
#include "config.h"
#endif
+#include <assert.h>
+
#include "atomlist.h"
void atomlist_add_head(struct atomlist_head *h, struct atomlist_item *item)
@@ -121,7 +123,7 @@ static void atomlist_del_core(struct atomlist_head *h,
memory_order_consume);
/* track the beginning of a chain of deleted items
- * this is neccessary to make this lock-free; we can
+ * this is necessary to make this lock-free; we can
* complete deletions started by other threads.
*/
if (!atomptr_l(prevval)) {