From: Richard Levitte Date: Sun, 17 Sep 2000 14:46:09 +0000 (+0000) Subject: Some platforms define NULL as ((void *)0). Unfortunately, a void* X-Git-Tag: OpenSSL-engine-0_9_6-beta2~2^2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=60dae9985d0120c62552776919ca474266649908;p=oweals%2Fopenssl.git Some platforms define NULL as ((void *)0). Unfortunately, a void* can't be used as a function pointer according the the standards. Use a 0 instead and there will be no trouble. --- diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c index 2eb531fd0d..02857f0446 100644 --- a/crypto/stack/stack.c +++ b/crypto/stack/stack.c @@ -111,7 +111,7 @@ err: STACK *sk_new_null(void) { - return sk_new((int (*)(const char * const *, const char * const *))NULL); + return sk_new((int (*)(const char * const *, const char * const *))0); } STACK *sk_new(int (*c)(const char * const *, const char * const *))