From 5f4f62c4c76e37b1065ede934cfd572ab3c3c78e Mon Sep 17 00:00:00 2001 From: barbieri Date: Fri, 20 Mar 2009 01:00:04 +0000 Subject: [PATCH] constness++ git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@39596 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/include/eina_hash.h | 4 ++-- src/include/eina_inline_hash.x | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/eina_hash.h b/src/include/eina_hash.h index 5f498f3..fed6f94 100644 --- a/src/include/eina_hash.h +++ b/src/include/eina_hash.h @@ -121,8 +121,8 @@ EAPI int eina_hash_superfast(const char *key, int len) EINA_ARG_NONNULL(1); static inline int eina_hash_djb2(const char *key, int len) EINA_ARG_NONNULL(1); /* Hash function from http://www.concentric.net/~Ttwang/tech/inthash.htm */ -static inline int eina_hash_int32(unsigned int *pkey, int len) EINA_ARG_NONNULL(1); -static inline int eina_hash_int64(unsigned long int *pkey, int len) EINA_ARG_NONNULL(1); +static inline int eina_hash_int32(const unsigned int *pkey, int len) EINA_ARG_NONNULL(1); +static inline int eina_hash_int64(const unsigned long int *pkey, int len) EINA_ARG_NONNULL(1); #include "eina_inline_hash.x" diff --git a/src/include/eina_inline_hash.x b/src/include/eina_inline_hash.x index d32dbb8..8aa7bec 100644 --- a/src/include/eina_inline_hash.x +++ b/src/include/eina_inline_hash.x @@ -54,7 +54,7 @@ eina_hash_djb2_len(const char *key, int *plen) } static inline int -eina_hash_int32(unsigned int *pkey, int len) +eina_hash_int32(const unsigned int *pkey, int len) { unsigned int key = *pkey; @@ -70,7 +70,7 @@ eina_hash_int32(unsigned int *pkey, int len) } static inline int -eina_hash_int64(unsigned long int *pkey, int len) +eina_hash_int64(const unsigned long int *pkey, int len) { unsigned long int key = *pkey; -- 2.7.4