struct lttng_clear_handle *lttng_clear_handle_create(int sessiond_socket)
{
int ret;
- struct lttng_clear_handle *handle = (lttng_clear_handle *) zmalloc(sizeof(*handle));
+ struct lttng_clear_handle *handle = zmalloc<lttng_clear_handle>();
if (!handle) {
goto end;
enum lttng_error_code ret_code = LTTNG_OK;
struct lttng_clear_handle *handle = NULL;
struct lttcomm_session_msg lsm = {
- .cmd_type = LTTNG_CLEAR_SESSION,
+ .cmd_type = LTTCOMM_SESSIOND_COMMAND_CLEAR_SESSION,
.session = {},
.domain = {},
.u = {},