From c00258237e0fd63d23fb2015c78c070b72b2e9d9 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 3 Dec 2004 07:43:00 +0000 Subject: (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 --- station_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index 9c1329191..c8c119e0f 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -682,7 +682,7 @@ static bool CanExpandRailroadStation(Station *st, uint *fin, int direction) return true; } -static byte FORCEINLINE *CreateSingle(byte *layout, int n) +static inline byte *CreateSingle(byte *layout, int n) { int i = n; do *layout++ = 0; while (--i); @@ -690,7 +690,7 @@ static byte FORCEINLINE *CreateSingle(byte *layout, int n) return layout; } -static byte FORCEINLINE *CreateMulti(byte *layout, int n, byte b) +static inline byte *CreateMulti(byte *layout, int n, byte b) { int i = n; do *layout++ = b; while (--i); -- cgit v1.2.3-54-g00ecf