summaryrefslogtreecommitdiff
path: root/saveload.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 /saveload.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 'saveload.c')
-rw-r--r--saveload.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/saveload.c b/saveload.c
index b4ab2982d..299890f2c 100644
--- a/saveload.c
+++ b/saveload.c
@@ -173,22 +173,22 @@ static uint SlGetGammaLength(uint i) {
return (i>=0x80) ? 2 : 1;
}
-int inline SlReadSparseIndex()
+inline int SlReadSparseIndex()
{
return SlReadSimpleGamma();
}
-void inline SlWriteSparseIndex(uint index)
+inline void SlWriteSparseIndex(uint index)
{
SlWriteSimpleGamma(index);
}
-int inline SlReadArrayLength()
+inline int SlReadArrayLength()
{
return SlReadSimpleGamma();
}
-void inline SlWriteArrayLength(uint length)
+inline void SlWriteArrayLength(uint length)
{
SlWriteSimpleGamma(length);
}