Remove dead code from add-context command
[lttng-tools.git] / src / bin / lttng / commands / add_context.c
index 6dc29d0670b3bb5883e7e39b39d2514107eb3b61..5ac755199eead42c69e90befeecb3f4aec5bdc71 100644 (file)
@@ -40,12 +40,6 @@ static int opt_kernel;
 static int opt_userspace;
 static char *opt_type;
 
-#if 0
-/* Not implemented yet */
-static char *opt_cmd_name;
-static pid_t opt_pid;
-#endif
-
 enum {
        OPT_HELP = 1,
        OPT_TYPE,
@@ -718,7 +712,7 @@ int cmd_add_context(int argc, const char **argv)
 
                        type = zmalloc(sizeof(struct ctx_type));
                        if (type == NULL) {
-                               perror("malloc ctx_type");
+                               PERROR("malloc ctx_type");
                                ret = CMD_FATAL;
                                goto end;
                        }
@@ -735,9 +729,6 @@ int cmd_add_context(int argc, const char **argv)
                        break;
                case OPT_USERSPACE:
                        opt_userspace = 1;
-#if 0
-                       opt_cmd_name = poptGetOptArg(pc);
-#endif
                        break;
                case OPT_LIST_OPTIONS:
                        list_cmd_options(stdout, long_options);
This page took 0.024298 seconds and 4 git commands to generate.