projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sessiond: disable clang-format to work around unstable output
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
remove_trigger.cpp
diff --git
a/src/bin/lttng/commands/remove_trigger.cpp
b/src/bin/lttng/commands/remove_trigger.cpp
index 0a10e16127c2994588feb235ba66bccbb1e4289a..08d4873f08a4cb9b9b66611eaeb51331c773ea76 100644
(file)
--- a/
src/bin/lttng/commands/remove_trigger.cpp
+++ b/
src/bin/lttng/commands/remove_trigger.cpp
@@
-73,6
+73,7
@@
int cmd_remove_trigger(int argc, const char **argv)
char *owner_uid = nullptr;
long long uid;
struct mi_writer *mi_writer = nullptr;
char *owner_uid = nullptr;
long long uid;
struct mi_writer *mi_writer = nullptr;
+ const char **args;
if (lttng_opt_mi) {
mi_writer = mi_lttng_writer_create(fileno(stdout), lttng_opt_mi);
if (lttng_opt_mi) {
mi_writer = mi_lttng_writer_create(fileno(stdout), lttng_opt_mi);
@@
-97,10
+98,9
@@
int cmd_remove_trigger(int argc, const char **argv)
}
}
}
}
- argc--;
- argv++;
+ args = argv + 1;
- argpar_iter = argpar_iter_create(argc
, argv
, remove_trigger_options);
+ argpar_iter = argpar_iter_create(argc
- 1, args
, remove_trigger_options);
if (!argpar_iter) {
ERR("Failed to allocate an argpar iter.");
goto error;
if (!argpar_iter) {
ERR("Failed to allocate an argpar iter.");
goto error;
@@
-110,7
+110,7
@@
int cmd_remove_trigger(int argc, const char **argv)
enum parse_next_item_status status;
status =
enum parse_next_item_status status;
status =
- parse_next_item(argpar_iter, &argpar_item, 1, arg
v
, true, nullptr, nullptr);
+ parse_next_item(argpar_iter, &argpar_item, 1, arg
s
, true, nullptr, nullptr);
if (status == PARSE_NEXT_ITEM_STATUS_ERROR ||
status == PARSE_NEXT_ITEM_STATUS_ERROR_MEMORY) {
goto error;
if (status == PARSE_NEXT_ITEM_STATUS_ERROR ||
status == PARSE_NEXT_ITEM_STATUS_ERROR_MEMORY) {
goto error;
This page took
0.024271 seconds
and
4
git commands to generate.