mirror of
https://passt.top/passt
synced 2025-06-13 11:05:34 +02:00
treewide: Mark constant references as const
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
965f603238
commit
48582bf47f
29 changed files with 192 additions and 168 deletions
6
packet.c
6
packet.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue