// $Id$
-/* tab:4
+/*
* "Copyright (c) 2005 Stanford University. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and
static unsigned int sim_log_hash(void* key) {
char* str = (char*)key;
unsigned int hashVal = 0;
- int c;
+ int hashChar;
- while ((c = *str++))
- hashVal = c + (hashVal << 6) + (hashVal << 16) - hashVal;
+ while ((hashChar = *str++))
+ hashVal = hashChar + (hashVal << 6) + (hashVal << 16) - hashVal;
return hashVal;
}