diff options
author | Richard Levitte <levitte@openssl.org> | 2022-10-28 12:11:30 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2022-10-28 12:11:30 +0200 |
commit | 89d72311327735ef15c804d2adea84a0fb1bfa0a (patch) | |
tree | 64fd0c59c7135b2b962bcfe735603474636b5545 /crypto/dso | |
parent | 8df9f34384cf1a9b8bc8748ea594b07fb5525899 (diff) | |
download | openssl-89d72311327735ef15c804d2adea84a0fb1bfa0a.tar.gz |
crypto/dso/dso_vms.c: Better definition of DSO_MALLOC()
Now we cover all possible cases.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19529)
Diffstat (limited to 'crypto/dso')
-rw-r--r-- | crypto/dso/dso_vms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/dso/dso_vms.c b/crypto/dso/dso_vms.c index 236b1924d4..6c84bb1988 100644 --- a/crypto/dso/dso_vms.c +++ b/crypto/dso/dso_vms.c @@ -22,6 +22,7 @@ # include "../vms_rms.h" /* Some compiler options may mask the declaration of "_malloc32". */ +# define DSO_MALLOC OPENSSL_malloc # if __INITIAL_POINTER_SIZE && defined _ANSI_C_SOURCE # if __INITIAL_POINTER_SIZE == 64 # pragma pointer_size save @@ -37,10 +38,9 @@ static void *dso_malloc(__size_t num, const char *file, int line) } return ret; } +# undef DSO_MALLOC # define DSO_MALLOC(num) dso_malloc((num), OPENSSL_FILE, OPENSSL_LINE) # pragma pointer_size restore -# else /* __INITIAL_POINTER_SIZE == 64 */ -# define DSO_MALLOC OPENSSL_malloc # endif /* __INITIAL_POINTER_SIZE == 64 [else] */ # endif /* __INITIAL_POINTER_SIZE && defined * _ANSI_C_SOURCE */ |