changeset 16957:6633c4c51ee0 draft

(svn r21693) -Codechange: no need to cast char[] to const uint8*
author smatz <smatz@openttd.org>
date Sat, 01 Jan 2011 21:41:01 +0000
parents 7b0c838febcf
children e5c819640141
files src/network/network_client.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -321,7 +321,7 @@
 	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]);