summaryrefslogtreecommitdiff
path: root/pathfind.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-03 07:43:00 +0000
committertron <tron@openttd.org>2004-12-03 07:43:00 +0000
commitc00258237e0fd63d23fb2015c78c070b72b2e9d9 (patch)
treee39a57439be0a2878fec3147140ca4e16f6b00e6 /pathfind.c
parentb7f0b278fbff5721557c2f7d06f0f1892ed7bd39 (diff)
downloadopenttd-c00258237e0fd63d23fb2015c78c070b72b2e9d9.tar.xz
(svn r907) Sprinkle holy ANSI water:
- "inline" must before the return type (and after "static") - Initialise all struct members, not just some of them - Remove (one) spurious semicolon
Diffstat (limited to 'pathfind.c')
-rw-r--r--pathfind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pathfind.c b/pathfind.c
index 122b79ad9..775fe9818 100644
--- a/pathfind.c
+++ b/pathfind.c
@@ -434,7 +434,7 @@ typedef struct {
// called after a new element was added in the queue at the last index.
// move it down to the proper position
-static void inline HeapifyUp(NewTrackPathFinder *tpf)
+static inline void HeapifyUp(NewTrackPathFinder *tpf)
{
StackedItem si;
int i = ++tpf->nstack;
@@ -448,7 +448,7 @@ static void inline HeapifyUp(NewTrackPathFinder *tpf)
}
// called after the element 0 was eaten. fill it with a new element
-static void inline HeapifyDown(NewTrackPathFinder *tpf)
+static inline void HeapifyDown(NewTrackPathFinder *tpf)
{
StackedItem si;
int i = 1, j;