diff --git a/winpr/libwinpr/crypto/md4.c b/winpr/libwinpr/crypto/md4.c index c33aea334..bae63e08f 100644 --- a/winpr/libwinpr/crypto/md4.c +++ b/winpr/libwinpr/crypto/md4.c @@ -72,7 +72,7 @@ * their own translation unit avoids the problem. */ #if defined(__i386__) || defined(__x86_64__) || defined(__vax__) -#define SET(n) (*(winpr_MD4_u32plus*)&ptr[(n)*4]) +#define SET(n) (*(const winpr_MD4_u32plus*)&ptr[(n)*4]) #define GET(n) SET(n) #else #define SET(n) \ diff --git a/winpr/libwinpr/crypto/md5.c b/winpr/libwinpr/crypto/md5.c index 96e8282a3..818cdf8e6 100644 --- a/winpr/libwinpr/crypto/md5.c +++ b/winpr/libwinpr/crypto/md5.c @@ -76,7 +76,7 @@ * their own translation unit avoids the problem. */ #if defined(__i386__) || defined(__x86_64__) || defined(__vax__) -#define SET(n) (*(winpr_MD5_u32plus*)&ptr[(n)*4]) +#define SET(n) (*(const winpr_MD5_u32plus*)&ptr[(n)*4]) #define GET(n) SET(n) #else #define SET(n) \