Some C compilers produce warnings or compilation errors if an attempt
authorDr. Stephen Henson <steve@openssl.org>
Thu, 12 May 2005 23:01:44 +0000 (23:01 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 12 May 2005 23:01:44 +0000 (23:01 +0000)
commitfe86616c722b36256d853bb5f16fc75b489716aa
tree48a1d3fdcdbb1ae946e9bfab6e2d8815cc8be56d
parentba2ba27008146e0ca425d5a45fcccf1c40b74702
Some C compilers produce warnings or compilation errors if an attempt
is made to directly cast a function of one type to what it considers and
incompatible type. In particular gcc 3.4.2.

Add new openssl_fcast macro to place functions into a form where the compiler
will allow them to be cast.

The current version achives this by casting to: void function(void).
crypto/asn1/asn1.h
crypto/ocsp/ocsp.h
crypto/pem/pem.h
crypto/stack/safestack.h