aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-01 12:44:58 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-01 12:44:58 +0200
commit0e89bb9f461d49e76c7927088ed3b3f1e40cdaf7 (patch)
tree289d9fe86f77ef9a125b809c5ae2cc775ed2ec92
parent63aed8f0fd61e097ae9eea43977cac4af595ca43 (diff)
downloadliberty-0e89bb9f461d49e76c7927088ed3b3f1e40cdaf7.tar.gz
liberty-0e89bb9f461d49e76c7927088ed3b3f1e40cdaf7.tar.xz
liberty-0e89bb9f461d49e76c7927088ed3b3f1e40cdaf7.zip
Add some consts to function arguments
-rw-r--r--liberty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liberty.c b/liberty.c
index 0d4f222..a3b8d27 100644
--- a/liberty.c
+++ b/liberty.c
@@ -2450,7 +2450,7 @@ write_queue_processed (struct write_queue *self, size_t len)
}
static bool
-write_queue_is_empty (struct write_queue *self)
+write_queue_is_empty (const struct write_queue *self)
{
return self->head == NULL;
}
@@ -2545,7 +2545,7 @@ msg_unpacker_make (const void *data, size_t len)
}
static size_t
-msg_unpacker_get_available (struct msg_unpacker *self)
+msg_unpacker_get_available (const struct msg_unpacker *self)
{
return self->len - self->offset;
}