diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-03-26 07:23:21 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-03-29 15:35:38 +0200 |
commit | 48582bf47f5ef7a1bf136ca455d182addad08028 (patch) | |
tree | af17ec9ede424ec7931731fc13af914da13dcbb3 /packet.c | |
parent | 965f603238a92b6ab8cd8a0592e0fb65c096b3e1 (diff) | |
download | passt-48582bf47f5ef7a1bf136ca455d182addad08028.tar passt-48582bf47f5ef7a1bf136ca455d182addad08028.tar.gz passt-48582bf47f5ef7a1bf136ca455d182addad08028.tar.bz2 passt-48582bf47f5ef7a1bf136ca455d182addad08028.tar.lz passt-48582bf47f5ef7a1bf136ca455d182addad08028.tar.xz passt-48582bf47f5ef7a1bf136ca455d182addad08028.tar.zst passt-48582bf47f5ef7a1bf136ca455d182addad08028.zip |
treewide: Mark constant references as const
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,7 +30,7 @@ * @line: For tracing: caller line of function call */ void packet_add_do(struct pool *p, size_t len, const char *start, - const char *func, const int line) + const char *func, int line) { size_t index = p->count; @@ -81,8 +81,8 @@ void packet_add_do(struct pool *p, size_t len, const char *start, * * Return: pointer to start of data range, NULL on invalid range or descriptor */ -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) +void *packet_get_do(const struct pool *p, size_t index, size_t offset, + size_t len, size_t *left, const char *func, int line) { if (index > p->size || index > p->count) { if (func) { |