Clean-up: liblttng-ctl: fix two trivial -Wshadow errors
[lttng-tools.git] / src / lib / lttng-ctl / clear.c
index 9beec7240fbc744c7d17b56e2a5b07e8fef098bd..060e2d0f2f986e68922a4c14a7a5f818d49204e5 100644 (file)
@@ -173,7 +173,6 @@ extern enum lttng_clear_handle_status
        lttng_clear_handle_wait_for_completion(
                struct lttng_clear_handle *handle, int timeout_ms)
 {
-       int ret;
        enum lttng_clear_handle_status status;
        unsigned long time_left_ms = 0;
        const bool has_timeout = timeout_ms > 0;
@@ -187,7 +186,7 @@ extern enum lttng_clear_handle_status
                goto end;
        }
        if (has_timeout) {
-               ret = lttng_clock_gettime(CLOCK_MONOTONIC, &initial_time);
+               int ret = lttng_clock_gettime(CLOCK_MONOTONIC, &initial_time);
                if (ret) {
                        status = LTTNG_CLEAR_HANDLE_STATUS_ERROR;
                        goto end;
This page took 0.023247 seconds and 4 git commands to generate.