(svn r2166) Fixed two warnings in the last commit.
authormatthijs
Thu, 07 Apr 2005 19:33:32 +0000
changeset 1662 9f8c03dbc1bd
parent 1661 6af0c4416154
child 1663 b086c94fb9a5
(svn r2166) Fixed two warnings in the last commit.
queue.c
--- a/queue.c	Thu Apr 07 19:19:16 2005 +0000
+++ b/queue.c	Thu Apr 07 19:33:32 2005 +0000
@@ -446,7 +446,6 @@
 void init_Hash(Hash* h, Hash_HashProc* hash, uint num_buckets) {
 	/* Allocate space for the Hash, the buckets and the bucket flags */
 	uint i;
-	uint max_hash;
 	assert(h);
 	#ifdef HASH_DEBUG
 	debug("Allocated hash: %p", h);
@@ -509,7 +508,7 @@
 	uint max_collision = 0;
 	uint max_usage = 0;
 	uint usage[200];
-	uint i,j;
+	uint i;
 	uint collision;
 	HashNode* node;
 
@@ -534,9 +533,12 @@
 	for (i=0;i<=max_collision;i++)
 		if (usage[i]) {
 			printf("%d:%d ", i, usage[i]);
-			/*if (i>0)
+/*
+ 			if (i>0){
+				uint j;
 				for (j=0;j<(usage[i] * 160 / 800);j++)
 					printf("#");
+			}
 			printf("\n");
 			*/
 		}