clang-tidy: apply suggested fixes
[lttng-tools.git] / src / common / userspace-probe.cpp
index 4a9c31812b75909769121c12edcf60e1571d6f6f..426f12860aec441ce96354b122fd81f2cd1114b4 100644 (file)
@@ -1436,7 +1436,7 @@ int lttng_userspace_probe_location_create_from_payload(
        int consumed = 0;
        int ret;
        struct lttng_userspace_probe_location_comm *probe_location_comm;
-       struct lttng_payload_view probe_location_comm_view =
+       const lttng_payload_view probe_location_comm_view =
                lttng_payload_view_from_view(view, 0, sizeof(*probe_location_comm));
 
        LTTNG_ASSERT(view);
@@ -1512,7 +1512,7 @@ end:
 static int lttng_userspace_probe_location_function_set_binary_fd_handle(
        struct lttng_userspace_probe_location *location, struct fd_handle *binary_fd)
 {
-       int ret = 0;
+       const int ret = 0;
        struct lttng_userspace_probe_location_function *function_location;
 
        LTTNG_ASSERT(location);
@@ -1529,7 +1529,7 @@ static int lttng_userspace_probe_location_function_set_binary_fd_handle(
 static int lttng_userspace_probe_location_tracepoint_set_binary_fd_handle(
        struct lttng_userspace_probe_location *location, struct fd_handle *binary_fd)
 {
-       int ret = 0;
+       const int ret = 0;
        struct lttng_userspace_probe_location_tracepoint *tracepoint_location;
 
        LTTNG_ASSERT(location);
This page took 0.024253 seconds and 4 git commands to generate.