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 | d5117d5a4620618fe7ae12c32f37d19abf37b331 (patch) | |
tree | 131e658a37e24bd5696f198ac1e0fdc172882638 /string.c | |
parent | 8567e130c7ac4378cf9242119690c3f4fd1356f4 (diff) | |
download | ruby-d5117d5a4620618fe7ae12c32f37d19abf37b331.tar.gz |
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); |