diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-04 01:54:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-04 01:54:54 +0000 |
commit | 40c3c3ec6cff9a04579faf478297d75a371fd54a (patch) | |
tree | 131e658a37e24bd5696f198ac1e0fdc172882638 /string.c | |
parent | 200d4afd444812a19c535c980f5ed2ef2ab17567 (diff) |
crypt.h: remove initialized
* missing/crypt.h (struct crypt_data): remove unnecessary member
"initialized".
* missing/crypt.c (des_setkey_r): nothing to be initialized in
crypt_data.
* configure.in (struct crypt_data): check for "initialized" in
struct crypt_data, which may be only in glibc, and isn't on AIX
at least.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -8424,7 +8424,9 @@ rb_str_crypt(VALUE str, VALUE salt) } #endif #ifdef HAVE_CRYPT_R +# ifdef HAVE_STRUCT_CRYPT_DATA_INITIALIZED data.initialized = 0; +# endif res = crypt_r(s, saltp, &data); #else res = crypt(s, saltp); |