Avoid shadowing 'free' in X509_LOOKUP_met_set_free
authorBenjamin Kaduk <bkaduk@akamai.com>
Thu, 16 Aug 2018 20:42:55 +0000 (15:42 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 17 Aug 2018 18:57:23 +0000 (13:57 -0500)
commit50f3994b513ead4da94845bf38222bb71c440fb3
tree9e9b4498cddcdb8075ff96beae608f62b24d9df8
parentd2b863643d94704abd9840519cfc54d22d0481fe
Avoid shadowing 'free' in X509_LOOKUP_met_set_free

gcc 4.6 (arguably erroneously) warns about our use of 'free' as
the name of a function parameter, when --strict-warnings is enabled:

crypto/x509/x509_meth.c: In function 'X509_LOOKUP_meth_set_free':
crypto/x509/x509_meth.c:61:12: error: declaration of 'free' shadows a global declaration [-Werror=shadow]
cc1: all warnings being treated as errors
make[1]: *** [crypto/x509/x509_meth.o] Error 1

(gcc 4.8 is fine with this code, as are newer compilers.)

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6991)
crypto/x509/x509_meth.c
include/openssl/x509_vfy.h