Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / lib / lttng-ctl / clear.c
index 060e2d0f2f986e68922a4c14a7a5f818d49204e5..3face64de83ed1f0f1902cacbc5f2a4991d0a8cb 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #define _LGPL_SOURCE
-#include <assert.h>
 #include <string.h>
 
 #include <lttng/lttng-error.h>
@@ -97,7 +96,7 @@ int handle_state_transition(struct lttng_clear_handle *handle)
 {
        int ret = 0;
 
-       assert(handle->communication.bytes_left_to_receive == 0);
+       LTTNG_ASSERT(handle->communication.bytes_left_to_receive == 0);
 
        switch (handle->communication.state) {
        case COMMUNICATION_STATE_RECEIVE_LTTNG_MSG:
@@ -121,7 +120,7 @@ int handle_state_transition(struct lttng_clear_handle *handle)
                LTTNG_OPTIONAL_SET(&handle->communication.data_size, 0);
                ret = lttng_dynamic_buffer_set_size(
                                &handle->communication.buffer, 0);
-               assert(!ret);
+               LTTNG_ASSERT(!ret);
                break;
        }
        default:
This page took 0.023028 seconds and 4 git commands to generate.