summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-01-01 21:41:01 +0000
committersmatz <smatz@openttd.org>2011-01-01 21:41:01 +0000
commitc6a90361fce4e29c9b8093b2c876ca08f521f192 (patch)
treeb381214cde8ca3249906570c11fceb9baaa894bc /src/network
parent8b6a8a89354e8c1390b9460ae03505c1dccb776e (diff)
downloadopenttd-c6a90361fce4e29c9b8093b2c876ca08f521f192.tar.xz
(svn r21693) -Codechange: no need to cast char[] to const uint8*
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index c4c46b208..326c3755a 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -321,7 +321,7 @@ static const char *GenerateCompanyPasswordHash(const char *password)
static char hashed_password[NETWORK_SERVER_ID_LENGTH];
/* Generate the MD5 hash */
- checksum.Append((const uint8*)salted_password, sizeof(salted_password) - 1);
+ checksum.Append(salted_password, sizeof(salted_password) - 1);
checksum.Finish(digest);
for (int di = 0; di < 16; di++) sprintf(hashed_password + di * 2, "%02x", digest[di]);