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
commitecf1c35849e0713f0c40727ad2253f0ffec94b93 (patch)
treee39a57439be0a2878fec3147140ca4e16f6b00e6 /pathfind.c
parent9a900c0f30da9203b21b676cc129a97b5a6ec719 (diff)
downloadopenttd-ecf1c35849e0713f0c40727ad2253f0ffec94b93.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;