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:
David Herrmann 2012-11-19 13:54:17 +01:00
parent ffd431babe
commit f460764f9e

View File

@ -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;