X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fsnapshot.c;h=8f44b9f1c189aeb893e3f8baf3883177fb880629;hb=38250272a0ab47aad1b93b15641df77abd658c81;hp=d357983107ed3312357c74199d272e3a4136694c;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/src/bin/lttng/commands/snapshot.c b/src/bin/lttng/commands/snapshot.c index d35798310..8f44b9f1c 100644 --- a/src/bin/lttng/commands/snapshot.c +++ b/src/bin/lttng/commands/snapshot.c @@ -19,7 +19,7 @@ #include #include -#include +#include #include "../command.h" @@ -624,10 +624,10 @@ int cmd_snapshot(int argc, const char **argv) case OPT_MAX_SIZE: { uint64_t val; - const char *opt = poptGetOptArg(pc); + const char *optarg = poptGetOptArg(pc); - if (utils_parse_size_suffix((char *) opt, &val) < 0) { - ERR("Unable to handle max-size value %s", opt); + if (utils_parse_size_suffix((char *) optarg, &val) < 0) { + ERR("Unable to handle max-size value %s", optarg); cmd_ret = CMD_ERROR; goto end; }