aboutsummaryrefslogtreecommitdiff
path: root/crypto/stack/safestack.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-05-27 11:28:49 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-05-27 11:28:49 +0000
commit0a56761f1942ca27e7a573a1a083e20910eba996 (patch)
treebf01c0453a06f8002c380a2bdfc63edd53a9e390 /crypto/stack/safestack.h
parent220903f92e1b8fae5d8b9b8ee23bec828d03b7d9 (diff)
downloadopenssl-0a56761f1942ca27e7a573a1a083e20910eba996.zip
openssl-0a56761f1942ca27e7a573a1a083e20910eba996.tar.gz
openssl-0a56761f1942ca27e7a573a1a083e20910eba996.tar.bz2
Avoid warning about empty structures and always define CHECKED_PTR_OF
Diffstat (limited to 'crypto/stack/safestack.h')
-rw-r--r--crypto/stack/safestack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/stack/safestack.h b/crypto/stack/safestack.h
index d57519f..50de737 100644
--- a/crypto/stack/safestack.h
+++ b/crypto/stack/safestack.h
@@ -57,13 +57,13 @@
#include <openssl/stack.h>
-#ifdef DEBUG_SAFESTACK
-
#ifndef CHECKED_PTR_OF
#define CHECKED_PTR_OF(type, p) \
((void*) (1 ? p : (type*)0))
#endif
+#ifdef DEBUG_SAFESTACK
+
#define CHECKED_SK_FREE_FUNC(type, p) \
((void (*)(void *)) ((1 ? p : (void (*)(type *))0)))