projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: liblttng-ctl: fix two trivial -Wshadow errors
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
clear.c
diff --git
a/src/lib/lttng-ctl/clear.c
b/src/lib/lttng-ctl/clear.c
index 9beec7240fbc744c7d17b56e2a5b07e8fef098bd..060e2d0f2f986e68922a4c14a7a5f818d49204e5 100644
(file)
--- a/
src/lib/lttng-ctl/clear.c
+++ b/
src/lib/lttng-ctl/clear.c
@@
-173,7
+173,6
@@
extern enum lttng_clear_handle_status
lttng_clear_handle_wait_for_completion(
struct lttng_clear_handle *handle, int timeout_ms)
{
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;
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) {
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;
if (ret) {
status = LTTNG_CLEAR_HANDLE_STATUS_ERROR;
goto end;
This page took
0.023657 seconds
and
4
git commands to generate.