X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Fdestruction-handle.cpp;h=04cbd92a59c4aa71862b6398abc3de52210e13ca;hb=37a5ef391d8d282fb8c8978e4761413b69d56072;hp=d937b2c73c3693a26dadb38962363b34323625d0;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/destruction-handle.cpp b/src/lib/lttng-ctl/destruction-handle.cpp index d937b2c73..04cbd92a5 100644 --- a/src/lib/lttng-ctl/destruction-handle.cpp +++ b/src/lib/lttng-ctl/destruction-handle.cpp @@ -69,7 +69,7 @@ struct lttng_destruction_handle *lttng_destruction_handle_create( int sessiond_socket) { int ret; - struct lttng_destruction_handle *handle = (lttng_destruction_handle *) zmalloc(sizeof(*handle)); + struct lttng_destruction_handle *handle = zmalloc(); if (!handle) { goto end; @@ -390,7 +390,7 @@ enum lttng_error_code lttng_destroy_session_ext(const char *session_name, 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 = {},