]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/tossim/sim_log.c
For some reason nx_bool was failing on TOSSIM.
[tinyos-2.x.git] / tos / lib / tossim / sim_log.c
index e17373053db452e7598cde921936eaae0a36b5a6..6ec2878c058a0720b62c285787d7d5aac55b5687 100644 (file)
@@ -298,10 +298,10 @@ void sim_log_error_clear(uint16_t id, char* string, const char* format, ...) {
 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;
 }