From 189ca7370762dca088a13d08ccb035e364758abb Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 22 Jan 2005 20:23:18 +0000 Subject: (svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile --- fileio.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'fileio.c') diff --git a/fileio.c b/fileio.c index 9baa5ed79..9808f0061 100644 --- a/fileio.c +++ b/fileio.c @@ -1,5 +1,6 @@ #include "stdafx.h" #include "ttd.h" +#include "fileio.h" #if defined(UNIX) || defined(__OS2__) #include // required for tolower() #endif @@ -21,7 +22,7 @@ typedef struct { static Fio _fio; // Get current position in file -uint32 FioGetPos() +uint32 FioGetPos(void) { return _fio.pos + (_fio.buffer - _fio.buffer_start) - FIO_BUFFER_SIZE; } @@ -42,7 +43,7 @@ void FioSeekToFile(uint32 pos) FioSeekTo(pos & 0xFFFFFF, SEEK_SET); } -byte FioReadByte() +byte FioReadByte(void) { if (_fio.buffer == _fio.buffer_end) { _fio.pos += FIO_BUFFER_SIZE; @@ -64,13 +65,13 @@ void FioSkipBytes(int n) } -uint16 FioReadWord() +uint16 FioReadWord(void) { byte b = FioReadByte(); return (FioReadByte() << 8) | b; } -uint32 FioReadDword() +uint32 FioReadDword(void) { uint b = FioReadWord(); return (FioReadWord() << 16) | b; -- cgit v1.2.3-54-g00ecf