Replace all assert(false) and assert(0) with abort()
[babeltrace.git] / plugins / ctf / fs-src / data-stream-file.c
index bf3dda60839051fa614f900196e1cda1d32a8964..2859ffbe2bd9d01e7ce62b4548922cbe9fec4b04 100644 (file)
@@ -22,6 +22,7 @@
  * SOFTWARE.
  */
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
@@ -465,7 +466,7 @@ struct bt_notification_iterator_next_return ctf_fs_ds_file_next(
                 * medium-specific; there is nothing for the user to do
                 * and it should have been handled upstream.
                 */
-               assert(false);
+               abort();
        case BT_CTF_NOTIF_ITER_STATUS_INVAL:
        case BT_CTF_NOTIF_ITER_STATUS_ERROR:
        default:
@@ -498,7 +499,7 @@ int ctf_fs_ds_file_get_packet_header_context_fields(
        case BT_CTF_NOTIF_ITER_STATUS_OK:
                break;
        case BT_CTF_NOTIF_ITER_STATUS_AGAIN:
-               assert(false);
+               abort();
        case BT_CTF_NOTIF_ITER_STATUS_INVAL:
        case BT_CTF_NOTIF_ITER_STATUS_ERROR:
        default:
This page took 0.023813 seconds and 4 git commands to generate.