mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	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
This commit is contained in:
		@@ -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++) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user