summaryrefslogtreecommitdiff
path: root/fileio.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-22 20:23:18 +0000
committertron <tron@openttd.org>2005-01-22 20:23:18 +0000
commit189ca7370762dca088a13d08ccb035e364758abb (patch)
treef77535f8809840126757131b192e611f6d912bdf /fileio.c
parent7984a9a5007f4bdf1107cdf646c42e3e137f65cf (diff)
downloadopenttd-189ca7370762dca088a13d08ccb035e364758abb.tar.xz
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Diffstat (limited to 'fileio.c')
-rw-r--r--fileio.c9
1 files changed, 5 insertions, 4 deletions
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 <ctype.h> // 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;