Fix: lttng: -Wshadow error in cmd_snapshot
[lttng-tools.git] / src / bin / lttng / commands / snapshot.c
index 8f44b9f1c189aeb893e3f8baf3883177fb880629..513257a3c43f8bf8785f60b5ec52fddbf1714d36 100644 (file)
@@ -624,10 +624,11 @@ int cmd_snapshot(int argc, const char **argv)
                case OPT_MAX_SIZE:
                {
                        uint64_t val;
-                       const char *optarg = poptGetOptArg(pc);
+                       const char *max_size_arg = poptGetOptArg(pc);
 
-                       if (utils_parse_size_suffix((char *) optarg, &val) < 0) {
-                               ERR("Unable to handle max-size value %s", optarg);
+                       if (utils_parse_size_suffix((char *) max_size_arg, &val) < 0) {
+                               ERR("Unable to handle max-size value %s",
+                                               max_size_arg);
                                cmd_ret = CMD_ERROR;
                                goto end;
                        }
This page took 0.023284 seconds and 4 git commands to generate.