summaryrefslogtreecommitdiff
path: root/src/libmowgli/container/queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmowgli/container/queue.c')
-rw-r--r--src/libmowgli/container/queue.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/libmowgli/container/queue.c b/src/libmowgli/container/queue.c
index 39150d3..a321d6b 100644
--- a/src/libmowgli/container/queue.c
+++ b/src/libmowgli/container/queue.c
@@ -139,7 +139,8 @@ mowgli_queue_skip(mowgli_queue_t *head, int nodes)
return_val_if_fail(head != NULL, NULL);
- for (iter = 0, n = head; n != NULL && iter < nodes; n = n->next, iter++);
+ for (iter = 0, n = head; n != NULL && iter < nodes; n = n->next, iter++)
+ ;
return n;
}
@@ -152,7 +153,8 @@ mowgli_queue_rewind(mowgli_queue_t *head, int nodes)
return_val_if_fail(head != NULL, NULL);
- for (iter = 0, n = head; n != NULL && iter < nodes; n = n->prev, iter++);
+ for (iter = 0, n = head; n != NULL && iter < nodes; n = n->prev, iter++)
+ ;
return n;
}
@@ -164,7 +166,8 @@ mowgli_queue_head(mowgli_queue_t *n)
return_val_if_fail(n != NULL, NULL);
- for (tn = n; tn != NULL && tn->prev != NULL; tn = tn->prev);
+ for (tn = n; tn != NULL && tn->prev != NULL; tn = tn->prev)
+ ;
return tn;
}
@@ -176,7 +179,8 @@ mowgli_queue_tail(mowgli_queue_t *n)
return_val_if_fail(n != NULL, NULL);
- for (tn = n; tn != NULL && tn->next != NULL; tn = tn->next);
+ for (tn = n; tn != NULL && tn->next != NULL; tn = tn->next)
+ ;
return tn;
}
@@ -225,7 +229,8 @@ mowgli_queue_length(mowgli_queue_t *head)
return_val_if_fail(head != NULL, -1);
- for (n = head, iter = 0; n != NULL; n = n->next, iter++);
+ for (n = head, iter = 0; n != NULL; n = n->next, iter++)
+ ;
return iter;
}