]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix warnings I caused in a previous commit
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 Oct 2011 09:37:48 +0000 (09:37 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 4 Oct 2011 11:34:43 +0000 (13:34 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11385 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a4e4ff088918c1516aac7af4c56e08e8b99f8954

prvm_cmds.c

index 51a3648ff69524c1f8192cbf68bfdc776d8a7bcd..359fc3866a1cd873c2748d1f562eaa0e142906a3 100644 (file)
@@ -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