shl: array: use "const" for source arguments
Use "const" even for void pointers as gcc will complain otherwise. Source arguments are read-only, anyway, so this doesn't break anything. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
ffd431babe
commit
f460764f9e
@ -84,7 +84,7 @@ static inline void shl_array_free(struct shl_array *arr)
|
||||
free(arr);
|
||||
}
|
||||
|
||||
static inline int shl_array_push(struct shl_array *arr, void *data)
|
||||
static inline int shl_array_push(struct shl_array *arr, const void *data)
|
||||
{
|
||||
void *tmp;
|
||||
size_t newsize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user