diff options
author | rubidium <rubidium@openttd.org> | 2007-07-25 00:16:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-25 00:16:30 +0000 |
commit | b29026864567b6a3842bd5b518ac989e5cd29d97 (patch) | |
tree | bc80f8b8cc5d138e78c7794df9fa66f425b589f3 /src/win32.cpp | |
parent | e640900e8ac5e35dad2242bda391903a04906852 (diff) | |
download | openttd-b29026864567b6a3842bd5b518ac989e5cd29d97.tar.xz |
(svn r10684) -Codechange: some more coding style related changes. Primarily moving { to a new line.
Diffstat (limited to 'src/win32.cpp')
-rw-r--r-- | src/win32.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/win32.cpp b/src/win32.cpp index 36b26c2e5..a734acf59 100644 --- a/src/win32.cpp +++ b/src/win32.cpp @@ -110,7 +110,8 @@ struct DebugFileInfo { static uint32 *_crc_table; -static void MakeCRCTable(uint32 *table) { +static void MakeCRCTable(uint32 *table) +{ uint32 crc, poly = 0xEDB88320L; int i; int j; @@ -126,7 +127,8 @@ static void MakeCRCTable(uint32 *table) { } } -static uint32 CalcCRC(byte *data, uint size, uint32 crc) { +static uint32 CalcCRC(byte *data, uint size, uint32 crc) +{ for (; size > 0; size--) { crc = ((crc >> 8) & 0x00FFFFFF) ^ _crc_table[(crc ^ *data++) & 0xFF]; } |