]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
use abort() instead of __builtin_abort
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Sep 2016 03:22:56 +0000 (20:22 -0700)
committerKeith Busch <keith.busch@intel.com>
Fri, 23 Sep 2016 14:40:25 +0000 (10:40 -0400)
This is more portable to different compilers, but should otherwise have
the same effect.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
json.c

diff --git a/json.c b/json.c
index e9fcf077e4284fb259a204333754189e66344e4d..e127aa2550344de59512ad1e172427724aeb86a8 100644 (file)
--- a/json.c
+++ b/json.c
@@ -8,7 +8,7 @@
 static inline void fail_and_notify(void)
 {
        fprintf(stderr, "Allocation of memory for json object failed, aborting.\n");
-       __builtin_abort();
+       abort();
 }
 
 struct json_object *json_create_object(void)