diff options
author | Daniel Flanagan <daniel@lytedev.io> | 2019-10-31 11:39:12 -0500 |
---|---|---|
committer | Daniel Flanagan <daniel@lytedev.io> | 2019-10-31 11:39:12 -0500 |
commit | dd33444f7eace81115308eadb568020470c48b2b (patch) | |
tree | b13c2a7f17cc64458016d396829e95ef5cea9294 /Hashtable.c | |
parent | 28840683cfc5d48307b9b0f382f55f8c84d6a0c4 (diff) |
Clean up existing whitespace
Diffstat (limited to 'Hashtable.c')
-rw-r--r-- | Hashtable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Hashtable.c b/Hashtable.c index b3eac8da..3436dad6 100644 --- a/Hashtable.c +++ b/Hashtable.c @@ -63,7 +63,7 @@ int Hashtable_count(Hashtable* this) { static HashtableItem* HashtableItem_new(unsigned int key, void* value) { HashtableItem* this; - + this = xMalloc(sizeof(HashtableItem)); this->key = key; this->value = value; @@ -73,7 +73,7 @@ static HashtableItem* HashtableItem_new(unsigned int key, void* value) { Hashtable* Hashtable_new(int size, bool owner) { Hashtable* this; - + this = xMalloc(sizeof(Hashtable)); this->items = 0; this->size = size; @@ -119,10 +119,10 @@ void Hashtable_put(Hashtable* this, unsigned int key, void* value) { void* Hashtable_remove(Hashtable* this, unsigned int key) { unsigned int index = key % this->size; - + assert(Hashtable_isConsistent(this)); - HashtableItem** bucket; + HashtableItem** bucket; for (bucket = &(this->buckets[index]); *bucket; bucket = &((*bucket)->next) ) { if ((*bucket)->key == key) { void* value = (*bucket)->value; |