]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
include/assert: ceph_abort should call abort(), not assert(0)
authorSage Weil <sage@redhat.com>
Mon, 27 Jun 2016 18:22:53 +0000 (11:22 -0700)
committerSage Weil <sage@redhat.com>
Tue, 28 Jun 2016 20:13:46 +0000 (16:13 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/include/assert.h

index 94f9d7407c755b45be88fca3e9bc3814e87e5582..4131dff54fa58d27cad628cb0a6976d1075993ff 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef CEPH_ASSERT_H
 #define CEPH_ASSERT_H
 
+#include <stdlib.h>
+
 #if defined(__linux__)
 #include <features.h>
 
@@ -117,7 +119,7 @@ using namespace ceph;
  * Currently, it's the same as assert(0), but we may one day make assert a
  * debug-only thing, like it is in many projects.
  */
-#define ceph_abort() assert(0)
+#define ceph_abort() abort()
 
 #endif