diff options
author | darkvater <darkvater@openttd.org> | 2005-01-16 12:14:52 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-01-16 12:14:52 +0000 |
commit | 208a9b854789cb9934c2d67123b027be150711b5 (patch) | |
tree | 483ce86e20fc1a7037787e755e57f51a80bf1e4b /fileio.c | |
parent | ae796740aab0ee480759d2015014b29e2a7aedb4 (diff) | |
download | openttd-208a9b854789cb9934c2d67123b027be150711b5.tar.xz |
(svn r1537) -Fix: Close all and any open filehandles open at shutdown (tamlin)
Diffstat (limited to 'fileio.c')
-rw-r--r-- | fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -83,11 +83,11 @@ void FioReadBlock(void *ptr, uint size) fread(ptr, 1, size, _fio.cur_fh); } -void FioCloseAll() +void FioCloseAll(void) { int i; - for(i=0; i!=lengthof(_fio.handles); i++) { + for (i = 0; i != lengthof(_fio.handles); i++) { if (_fio.handles[i] != NULL) { fclose(_fio.handles[i]); _fio.handles[i] = NULL; |