From 48582bf47f5ef7a1bf136ca455d182addad08028 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Sat, 26 Mar 2022 07:23:21 +0100 Subject: treewide: Mark constant references as const Signed-off-by: Stefano Brivio --- packet.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packet.h') diff --git a/packet.h b/packet.h index 0ef8849..abd6041 100644 --- a/packet.h +++ b/packet.h @@ -33,9 +33,10 @@ struct pool { }; void packet_add_do(struct pool *p, size_t len, const char *start, - const char *func, const int line); -void *packet_get_do(struct pool *p, size_t index, size_t offset, size_t len, - size_t *left, const char *func, const int line); + const char *func, int line); +void *packet_get_do(const struct pool *p, const size_t index, + size_t offset, size_t len, size_t *left, + const char *func, int line); void pool_flush(struct pool *p); #define packet_add(p, len, start) \ -- cgit v1.2.3