diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-11-19 13:54:17 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2012-11-19 13:54:17 +0100 |
commit | f460764f9e17df60525123aee0b15a1e4f7aebeb (patch) | |
tree | d191eb253fdc0e3872bd14f501032a5c87f9156a /src/shl_array.h | |
parent | ffd431babe665e9ab68e7da1c70102ca81ed0657 (diff) |
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>
Diffstat (limited to 'src/shl_array.h')
-rw-r--r-- | src/shl_array.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |