From 007f801098c4f09dbe513eb87a686a5f2ad1fc6d Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 2 Oct 2011 09:37:48 +0000 Subject: [PATCH] fix warnings I caused in a previous commit git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11385 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=a4e4ff088918c1516aac7af4c56e08e8b99f8954 --- prvm_cmds.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2