summaryrefslogtreecommitdiff
path: root/queue.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-09-11 09:55:19 +0000
committertruelight <truelight@openttd.org>2004-09-11 09:55:19 +0000
commit7aa0bdf48b8f27389ad69c4299b8d910398c43d5 (patch)
tree2e17fa3fbbc0602115bc187deb458d519077a76d /queue.c
parent4ccd84f94b844388d4fab8413bdf77e5580526fe (diff)
downloadopenttd-7aa0bdf48b8f27389ad69c4299b8d910398c43d5.tar.xz
(svn r202) -Codechange: I missed some files with trailing spaces.. this should be
all ;)
Diffstat (limited to 'queue.c')
-rw-r--r--queue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/queue.c b/queue.c
index 6817467a1..8c88542ef 100644
--- a/queue.c
+++ b/queue.c
@@ -150,7 +150,7 @@ void InsSort_Clear(Queue* q, bool free_values) {
prev = node;
node = node->next;
free(prev);
-
+
}
q->data.inssort.first = NULL;
}
@@ -283,7 +283,7 @@ bool BinaryHeap_Push(Queue* q, void* item, int priority) {
if (q->data.binaryheap.size == q->data.binaryheap.max_size)
return false;
assert(q->data.binaryheap.size < q->data.binaryheap.max_size);
-
+
if (q->data.binaryheap.elements[q->data.binaryheap.size >> BINARY_HEAP_BLOCKSIZE_BITS] == NULL) {
/* The currently allocated blocks are full, allocate a new one */
assert((q->data.binaryheap.size & BINARY_HEAP_BLOCKSIZE_MASK) == 0);
@@ -466,14 +466,14 @@ void delete_Hash(Hash* h, bool free_values) {
if (h->buckets_in_use[i]) {
HashNode* node;
/* Free the first value */
- if (free_values)
+ if (free_values)
free(h->buckets[i].value);
node = h->buckets[i].next;
while (node != NULL) {
HashNode* prev = node;
node = node->next;
/* Free the value */
- if (free_values)
+ if (free_values)
free(prev->value);
/* Free the node */
free(prev);