From 5e4961d9028adcb0961cdb52034ba576dde6164b Mon Sep 17 00:00:00 2001 From: matthijs Date: Thu, 7 Apr 2005 19:33:32 +0000 Subject: (svn r2166) Fixed two warnings in the last commit. --- queue.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'queue.c') diff --git a/queue.c b/queue.c index 8602bb673..034af816b 100644 --- a/queue.c +++ b/queue.c @@ -446,7 +446,6 @@ Queue* new_BinaryHeap(uint max_size) { 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 @@ void stat_Hash(Hash* h) uint max_collision = 0; uint max_usage = 0; uint usage[200]; - uint i,j; + uint i; uint collision; HashNode* node; @@ -534,9 +533,12 @@ void stat_Hash(Hash* h) 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"); */ } -- cgit v1.2.3-54-g00ecf