From: divverent Date: Sun, 2 Oct 2011 09:37:48 +0000 (+0000) Subject: fix warnings I caused in a previous commit X-Git-Tag: xonotic-v0.6.0~163^2~167 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a4e4ff088918c1516aac7af4c56e08e8b99f8954;p=xonotic%2Fdarkplaces.git fix warnings I caused in a previous commit git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11385 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_cmds.c b/prvm_cmds.c index 51a3648f..359fc386 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -13,6 +13,7 @@ #include "cl_collision.h" #include "clvm_cmds.h" #include "ft2.h" +#include "mdfour.h" extern cvar_t prvm_backtraceforwarnings; @@ -5671,12 +5672,12 @@ void VM_digest_hex(void) if(!strcmp(digest, "MD4")) { outlen = 16; - mdfour(&out, s, len); + mdfour((unsigned char *) out, (unsigned char *) s, len); } else if(!strcmp(digest, "SHA256") && Crypto_Available()) { outlen = 32; - sha256(&out, s, len); + sha256((unsigned char *) out, (unsigned char *) s, len); } // no warning needed on mismatch - we return string_null to QC