bin: compile lttng-consumerd as a C++
[lttng-tools.git] / src / lib / lttng-ctl / rotate.c
index 1002e230b64e504b55583e1770aa49b42d38a88c..d131944043ec4bf2667999137acb997fc056037b 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #define _LGPL_SOURCE
-#include <assert.h>
 #include <string.h>
 
 #include <lttng/lttng-error.h>
@@ -169,7 +168,7 @@ void lttng_rotation_handle_destroy(
        if (!rotation_handle) {
                return;
        }
-       lttng_trace_archive_location_destroy(rotation_handle->archive_location);
+       lttng_trace_archive_location_put(rotation_handle->archive_location);
        free(rotation_handle);
 }
 
@@ -223,7 +222,7 @@ int lttng_rotate_session(const char *session_name,
        ret = lttng_strncpy(lsm.session.name, session_name,
                            sizeof(lsm.session.name));
        /* Source length already validated. */
-       assert(ret == 0);
+       LTTNG_ASSERT(ret == 0);
 
        ret = lttng_ctl_ask_sessiond(&lsm, (void **) &rotate_return);
        if (ret <= 0) {
@@ -288,7 +287,7 @@ enum lttng_rotation_status lttng_rotation_update_schedule(
        ret = lttng_strncpy(lsm.session.name, session_name,
                        sizeof(lsm.session.name));
        /* Source length already validated. */
-       assert(ret == 0);
+       LTTNG_ASSERT(ret == 0);
 
        lsm.u.rotation_set_schedule.type = (uint32_t) schedule->type;
        switch (schedule->type) {
This page took 0.023477 seconds and 4 git commands to generate.