int sessiond_socket)
{
int ret;
- struct lttng_destruction_handle *handle = (lttng_destruction_handle *) zmalloc(sizeof(*handle));
+ struct lttng_destruction_handle *handle = zmalloc<lttng_destruction_handle>();
if (!handle) {
goto end;
ssize_t comm_ret;
enum lttng_error_code ret_code = LTTNG_OK;
struct lttcomm_session_msg lsm = {
- .cmd_type = LTTNG_DESTROY_SESSION,
+ .cmd_type = LTTCOMM_SESSIOND_COMMAND_DESTROY_SESSION,
.session = {},
.domain = {},
.u = {},