Change find_name_in_genericlist() to take const char * argument

This commit is contained in:
Kevin Easton
2015-10-28 21:42:33 +11:00
parent f2262d5b01
commit af3b0c920a
3 changed files with 5 additions and 5 deletions

View File

@@ -147,11 +147,11 @@ static inline void remove_gen_link_from_list(List *tmp, List *prev, HashEntry *l
tmp->next = NULL;
}
List *BX_find_name_in_genericlist(char *name, HashEntry *list, unsigned int size, int remove)
List *BX_find_name_in_genericlist(const char *name, HashEntry *list, unsigned int size, int remove)
{
HashEntry *location;
register List *tmp, *prev = NULL;
unsigned long hvalue = hash_nickname(name, size);
List *tmp, *prev = NULL;
const unsigned long hvalue = hash_nickname(name, size);
location = &(list[hvalue]);