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
1.6.0
Russell Bryant 17 years ago
parent 83002989a9
commit 7205c1f23c

@ -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 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; unsigned int total = 0, c = 0;
while ((c = *str++)) 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 int ast_hashtab_hash_string_nocase(const void *obj)
{ {
unsigned char *str = (unsigned char*)obj; const unsigned char *str = obj;
unsigned int total; unsigned int total;
for (total = 0; *str; str++) { for (total = 0; *str; str++) {

Loading…
Cancel
Save