summaryrefslogtreecommitdiff
path: root/ext/digest/sha1/sha1init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/sha1/sha1init.c')
-rw-r--r--ext/digest/sha1/sha1init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/digest/sha1/sha1init.c b/ext/digest/sha1/sha1init.c
index b2146f05a9a..d46a1cd67db 100644
--- a/ext/digest/sha1/sha1init.c
+++ b/ext/digest/sha1/sha1init.c
@@ -8,7 +8,7 @@
#include "sha1.h"
#endif
-static rb_digest_metadata_t sha1 = {
+static const rb_digest_metadata_t sha1 = {
RUBY_DIGEST_API_VERSION,
SHA1_DIGEST_LENGTH,
SHA1_BLOCK_LENGTH,
@@ -36,5 +36,5 @@ Init_sha1()
cDigest_SHA1 = rb_define_class_under(mDigest, "SHA1", cDigest_Base);
rb_ivar_set(cDigest_SHA1, rb_intern("metadata"),
- Data_Wrap_Struct(rb_cObject, 0, 0, &sha1));
+ Data_Wrap_Struct(rb_cObject, 0, 0, (void *)&sha1));
}