summaryrefslogtreecommitdiffhomepage
path: root/queue.c
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2017-08-19 17:16:13 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2017-08-19 17:16:13 +0200
commit89e64c631ec8dee41ec4de888548d36887b6ec98 (patch)
tree91fc3aee54e9b9cac7ec893ddf91cb944e3fc220 /queue.c
parent468656b4aab5bc0040e3ecbfd7f66f52a15da76d (diff)
Pointer parameter could be declared as pointing to const
Diffstat (limited to 'queue.c')
-rw-r--r--queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/queue.c b/queue.c
index 9d00808..f3ece7f 100644
--- a/queue.c
+++ b/queue.c
@@ -33,7 +33,7 @@ void initqueue(struct Queue* queue) {
queue->count = 0;
}
-int isempty(struct Queue* queue) {
+int isempty(const struct Queue* queue) {
return (queue->head == NULL);
}
@@ -60,7 +60,7 @@ void* dequeue(struct Queue* queue) {
return ret;
}
-void *examine(struct Queue* queue) {
+void *examine(const struct Queue* queue) {
dropbear_assert(!isempty(queue));
return queue->head->item;