1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/digest/md5/md5init.c (md5), ext/digest/rmd160/rmd160init.c

(rmd160) ext/digest/sha1/sha1init.c (sha1),
  ext/digest/sha2/sha2init.c (sha256, sha384, sha512): constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-09-01 07:48:53 +00:00
parent a7cdd20204
commit cb50168eb0
5 changed files with 14 additions and 8 deletions

View file

@ -8,7 +8,7 @@
#include "rmd160.h"
#endif
static rb_digest_metadata_t rmd160 = {
static const rb_digest_metadata_t rmd160 = {
RUBY_DIGEST_API_VERSION,
RMD160_DIGEST_LENGTH,
RMD160_BLOCK_LENGTH,
@ -36,5 +36,5 @@ Init_rmd160()
cDigest_RMD160 = rb_define_class_under(mDigest, "RMD160", cDigest_Base);
rb_ivar_set(cDigest_RMD160, rb_intern("metadata"),
Data_Wrap_Struct(rb_cObject, 0, 0, &rmd160));
Data_Wrap_Struct(rb_cObject, 0, 0, (void *)&rmd160));
}