[eggheads-patches] Patch for mod/modules.h to fix MD5_Init

Draco Paladin paladin at techmonkeys.org
Mon Jun 30 18:49:52 CST 2003


While moving idea.mod to 1.6.15 (because of the exporting of the MD5
functions) I found a mistake in src/mod/modules.h, MD5_Init isn't
defined right.  The following patch fixes it.

Paladin
-- 
Mit der Dummheit kämpfen Götter selbst vergebens.
(Against stupidity, even the Gods struggle in vain.)
                            - Friedrich von Schiller
Public Key: http://techmonkeys.org/~paladin/pubkey.asc
-------------- next part --------------
diff -urN eggdrop1.6.15/src/mod/module.h eggdrop1.6.15.new/src/mod/module.h
--- eggdrop1.6.15/src/mod/module.h	2003-05-04 15:05:32.000000000 -0700
+++ eggdrop1.6.15.new/src/mod/module.h	2003-06-30 17:42:57.000000000 -0700
@@ -464,7 +464,7 @@
 #define parties (*(int *)global[275])
 /* 276 - 279 */
 #define tell_bottree ((void (*)(int, int))global[276])
-#define MD5_Init ((void (*)(MD5_CTX))global[277])
+#define MD5_Init ((void (*)(MD5_CTX *))global[277])
 #define MD5_Update ((void (*)(MD5_CTX *, void *, unsigned long))global[278])
 #define MD5_Final ((void (*)(unsigned char *, MD5_CTX *))global[279])
 /* 280 - 283 */


More information about the Patches mailing list