diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-03-04 04:47:32 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-03-04 04:47:32 +0000 |
commit | 7205c1f23cc11952eaad4ebefecf459c08834b3c (patch) | |
tree | 1865d9ae65c6452b0fa1c0a43d5a15b029bf5735 /main | |
parent | 83002989a9ca7a18980133c0e9ec4e01b523db98 (diff) |
Make it so you don't have to cast away const in a couple places
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@105594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/hashtab.c | 4 |
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++) { |