Browse Source

modules_k/pua: Wrong type in local variable

- I used an int when I should heve used an unsigned int
pd 13 years ago
parent
commit
65f41ac654
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules_k/pua/hash.c

+ 1 - 1
modules_k/pua/hash.c

@@ -255,7 +255,7 @@ void _insert_htable(ua_pres_t* presentity, unsigned int hash_code)
 
 void insert_htable(ua_pres_t* presentity)
 {
-	int hash_code;
+	unsigned int hash_code;
 
 	hash_code= core_hash(presentity->pres_uri,presentity->watcher_uri, HASH_SIZE);
 	lock_get(&HashT->p_records[hash_code].lock);