summaryrefslogtreecommitdiff
path: root/src/win32.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-25 00:16:30 +0000
committerrubidium <rubidium@openttd.org>2007-07-25 00:16:30 +0000
commitb29026864567b6a3842bd5b518ac989e5cd29d97 (patch)
treebc80f8b8cc5d138e78c7794df9fa66f425b589f3 /src/win32.cpp
parente640900e8ac5e35dad2242bda391903a04906852 (diff)
downloadopenttd-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.cpp6
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];
}