diff options
author | Richard Levitte <levitte@openssl.org> | 2016-03-30 08:35:18 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-03-30 20:25:08 +0200 |
commit | 087ca80ad83071dde0bb6bc1c28c743caa00eaf8 (patch) | |
tree | 63e6d61af33aeae5da33ca126e3582231295ddaf /apps/vms_decc_init.c | |
parent | 90dbd25097d7d4af0bea0cd9cab60d749ed0a6a2 (diff) | |
download | openssl-087ca80ad83071dde0bb6bc1c28c743caa00eaf8.tar.gz |
Fix pointer size issues with argv on VMS
The argument 'argv' in 'main' is a short pointer to a short pointer on
VMS, regardless of initial pointer size. We must therefore make sure
that 'copy_argv' gets a 32-bit pointer for argv, and that the copied
argv is used for the rest of main().
This introduces the local type argv_t, which will have correct pointer
size in all cases (and be harmless on all other platforms) as well as
the macro Argv, which is defined as 'copied_argv' or 'argv', as the
case may be.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'apps/vms_decc_init.c')
-rw-r--r-- | apps/vms_decc_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/vms_decc_init.c b/apps/vms_decc_init.c index b66c00ffd1..8f8ffc6753 100644 --- a/apps/vms_decc_init.c +++ b/apps/vms_decc_init.c @@ -105,7 +105,8 @@ decc_feat_t decc_feat_array[] = { {(char *)NULL, 0} }; -char **copy_argv(int *argc, char *argv[]) + +char **copy_argv(int *argc, argv_t argv) { /*- * The note below is for historical purpose. On VMS now we always |