]> granicus.if.org Git - openssl/commit
VMS: setbuf() only takes 32-bit pointers
authorRichard Levitte <levitte@openssl.org>
Fri, 20 May 2016 09:12:15 +0000 (11:12 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 20 May 2016 14:09:48 +0000 (16:09 +0200)
commit8ff889c2a242927305d013e3bf79c7bb735793b0
tree90867a12c0e3c256098270dcd026e1b16c438292
parentd7295cd6d2e9f01b6aee367004e18c4c0a607565
VMS: setbuf() only takes 32-bit pointers

Giving setbuf() a 64-bit pointer isn't faulty, as the argument is
passed by a 64-bit register anyway, so you only get a warning
(MAYLOSEDATA2) pointing out that only the least significant 32 bits
will be used.

However, we know that a FILE* returned by fopen() and such really is a
32-bit pointer (a study of the system header files make that clear),
so we temporarly turn off that warning when calling setbuf().

Reviewed-by: Andy Polyakov <appro@openssl.org>
crypto/rand/randfile.c