summaryrefslogtreecommitdiffstats
path: root/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'list.c')
-rw-r--r--list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/list.c b/list.c
index 1887403..623d6b2 100644
--- a/list.c
+++ b/list.c
@@ -88,7 +88,7 @@ ll_append(ll_t * const list, void * const data)
node->next = NULL; /* This node will be the last. */
node->prev = list->tail; /* NULL if it is a new list. */
- if (list->tail)
+ if (list->tail != NULL)
list->tail->next = node;
else
list->head = node;
@@ -245,7 +245,7 @@ ll_find(ll_t * const list,
void
ll_free(ll_t * const list, void (*clean)(void *))
{
- if (list)
+ if (list != NULL)
{
ll_node_t *node = list->head;
@@ -269,7 +269,7 @@ ll_free(ll_t * const list, void (*clean)(void *))
void
ll_destroy(ll_t *list, void (*clean)(void *))
{
- if (list)
+ if (list != NULL)
{
ll_free(list, clean);
free(list);