input: make unique mapping per port.

This commit is contained in:
Sorgelig
2023-05-21 02:28:34 +08:00
parent 0ebf137532
commit d6eefdcbdc
4 changed files with 9 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ unsigned int str_hash(const char *s, unsigned int initial)
unsigned int hash = initial;
int c;
while( c = *s++ )
while((c = *s++))
{
hash = ((hash << 5) + hash) + c;
}