aboutsummaryrefslogtreecommitdiff
path: root/src/lib/third_party/include/uthash.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/third_party/include/uthash.h')
-rw-r--r--src/lib/third_party/include/uthash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/third_party/include/uthash.h b/src/lib/third_party/include/uthash.h
index 49c69df03..b7dfe4d3b 100644
--- a/src/lib/third_party/include/uthash.h
+++ b/src/lib/third_party/include/uthash.h
@@ -118,7 +118,7 @@ do {
/* malloc failures result in lost memory, hash tables are unusable */
#ifndef uthash_fatal
-#define uthash_fatal(msg) exit(-1) /* fatal OOM error */
+#define uthash_fatal(msg) abort() /* fatal OOM error */
#endif
#define HASH_RECORD_OOM(oomed) uthash_fatal("out of memory")
@@ -513,7 +513,7 @@ do {
*/
#ifdef HASH_DEBUG
#include <stdio.h> /* fprintf, stderr */
-#define HASH_OOPS(...) do { fprintf(stderr, __VA_ARGS__); exit(-1); } while (0)
+#define HASH_OOPS(...) do { fprintf(stderr, __VA_ARGS__); abort(); } while (0)
#define HASH_FSCK(hh,head,where) \
do { \
struct UT_hash_handle *_thh; \