diff queue.c @ 1511:5916af64acd4 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Sat, 17 Feb 2018 19:29:51 +0800
parents 06d52bcb8094
children
line wrap: on
line diff
--- a/queue.c	Tue Jan 23 23:27:40 2018 +0800
+++ b/queue.c	Sat Feb 17 19:29:51 2018 +0800
@@ -33,7 +33,7 @@
 	queue->count = 0;
 }
 
-int isempty(struct Queue* queue) {
+int isempty(const struct Queue* queue) {
 
 	return (queue->head == NULL);
 }
@@ -60,7 +60,7 @@
 	return ret;
 }
 
-void *examine(struct Queue* queue) {
+void *examine(const struct Queue* queue) {
 
 	dropbear_assert(!isempty(queue));
 	return queue->head->item;