Change hash_nickname() to take a const char * argument

This commit is contained in:
Kevin Easton
2015-10-28 21:38:26 +11:00
parent a24f1d12ec
commit f2262d5b01
2 changed files with 3 additions and 3 deletions

View File

@@ -44,9 +44,9 @@ CVS_REVISION(hash_c)
* nick by counting up the ascii values of the lower case, and
* then %'ing it by NICKLIST_HASHSIZE (always a prime!)
*/
unsigned long hash_nickname(char *nick, unsigned int size)
unsigned long hash_nickname(const char *nick, unsigned int size)
{
register u_char *p = (u_char *) nick;
const unsigned char *p = (const unsigned char *)nick;
unsigned long hash = 0, g;
if (!nick) return -1;
while (*p)