Cleanup: remove ignored flags from poll events bitmasks
[lttng-tools.git] / src / lib / lttng-ctl / clear.cpp
index 114758b0c8f3a38296600e9bba47d28929ccc0f2..870935bd3280d527ace8d40444d43ea5d3864eb3 100644 (file)
@@ -64,7 +64,7 @@ static
 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;
@@ -77,7 +77,7 @@ struct lttng_clear_handle *lttng_clear_handle_create(int sessiond_socket)
        }
 
        ret = lttng_poll_add(&handle->communication.events, sessiond_socket,
-                       LPOLLIN | LPOLLHUP | LPOLLRDHUP | LPOLLERR);
+                       LPOLLIN | LPOLLRDHUP);
        if (ret) {
                goto error;
        }
@@ -282,7 +282,7 @@ enum lttng_error_code lttng_clear_session(const char *session_name,
        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 = {},
This page took 0.023205 seconds and 4 git commands to generate.