From f460764f9e17df60525123aee0b15a1e4f7aebeb Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Mon, 19 Nov 2012 13:54:17 +0100 Subject: [PATCH] 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 --- src/shl_array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shl_array.h b/src/shl_array.h index 2f30413..e108ca3 100644 --- a/src/shl_array.h +++ b/src/shl_array.h @@ -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; -- 2.7.4