aboutsummaryrefslogtreecommitdiffstats
path: root/main/hashtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/hashtab.c')
-rw-r--r--main/hashtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/hashtab.c b/main/hashtab.c
index 111fecc01..7ab120486 100644
--- a/main/hashtab.c
+++ b/main/hashtab.c
@@ -165,7 +165,7 @@ unsigned int ast_hashtab_hash_string(const void *obj)
unsigned int ast_hashtab_hash_string_sax(const void *obj) /* from Josh */
{
- unsigned char *str = (unsigned char *) obj;
+ const unsigned char *str = obj;
unsigned int total = 0, c = 0;
while ((c = *str++))
@@ -176,7 +176,7 @@ unsigned int ast_hashtab_hash_string_sax(const void *obj) /* from Josh */
unsigned int ast_hashtab_hash_string_nocase(const void *obj)
{
- unsigned char *str = (unsigned char*)obj;
+ const unsigned char *str = obj;
unsigned int total;
for (total = 0; *str; str++) {