summaryrefslogtreecommitdiff
path: root/src/node_crypto_bio.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2014-10-11 16:52:07 +0200
committerFedor Indutny <fedor@indutny.com>2014-10-12 02:09:46 +0400
commit5fdff3854a4253681fb10aa626c8971e50834c10 (patch)
treebaa8b219fff28467b641d4f4f36a5b090f6cc6b2 /src/node_crypto_bio.h
parent75a461d0997e0a040c2194c5309c148f179563e9 (diff)
downloadnode-new-5fdff3854a4253681fb10aa626c8971e50834c10.tar.gz
src: replace assert() with CHECK()
Mechanically replace assert() statements with UNREACHABLE(), CHECK(), or CHECK_{EQ,NE,LT,GT,LE,GE}() statements. The exceptions are src/node.h and src/node_object_wrap.h because they are public headers. PR-URL: https://github.com/node-forward/node/pull/16 Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'src/node_crypto_bio.h')
-rw-r--r--src/node_crypto_bio.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_crypto_bio.h b/src/node_crypto_bio.h
index 163a82124f..1f5657fbf1 100644
--- a/src/node_crypto_bio.h
+++ b/src/node_crypto_bio.h
@@ -23,7 +23,8 @@
#define SRC_NODE_CRYPTO_BIO_H_
#include "openssl/bio.h"
-#include <assert.h>
+#include "util.h"
+#include "util-inl.h"
namespace node {
@@ -88,7 +89,7 @@ class NodeBIO {
}
static inline NodeBIO* FromBIO(BIO* bio) {
- assert(bio->ptr != NULL);
+ CHECK_NE(bio->ptr, NULL);
return static_cast<NodeBIO*>(bio->ptr);
}