aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-04 04:47:32 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-04 04:47:32 +0000
commitc58ef902bc153e053022ca4ab8a9fd8306ff1697 (patch)
tree1865d9ae65c6452b0fa1c0a43d5a15b029bf5735
parent9e92942e58f851c3c96895295b4c2d19b7c6cde3 (diff)
Make it so you don't have to cast away const in a couple places
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105594 f38db490-d61c-443f-a65b-d21fe96a405b
-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++) {