From 77fa85d25536822543253da63b0bfddf9d41ef57 Mon Sep 17 00:00:00 2001 From: Michel Boaventura Date: Mon, 24 Aug 2020 16:20:15 -0300 Subject: [PATCH] Fix crypt_r definition Its last argument should be of type `struct crypt_data *`, not `void *` according to https://linux.die.net/man/3/crypt_r --- ext/mri/wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mri/wrapper.c b/ext/mri/wrapper.c index c88c0bd..cbba882 100644 --- a/ext/mri/wrapper.c +++ b/ext/mri/wrapper.c @@ -179,7 +179,7 @@ char *crypt_ra(const char *key, const char *setting, return _crypt_blowfish_rn(key, setting, (char *)*data, *size); } -char *crypt_r(const char *key, const char *setting, void *data) +char *crypt_r(const char *key, const char *setting, struct crypt_data *data) { return _crypt_retval_magic( crypt_rn(key, setting, data, CRYPT_OUTPUT_SIZE),