Skip to content

Commit

Permalink
tools: lxc-start: remove unused argument
Browse files Browse the repository at this point in the history
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
  • Loading branch information
2xsec authored and Christian Brauner committed Oct 7, 2018
1 parent 29c417d commit 6899425
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lxc/tools/lxc_start.c
Expand Up @@ -52,7 +52,7 @@
lxc_log_define(lxc_start, lxc);

static int my_parser(struct lxc_arguments *args, int c, char *arg);
static int ensure_path(struct lxc_arguments *args, char **confpath, const char *path);
static int ensure_path(char **confpath, const char *path);

static struct lxc_list defines;

Expand Down Expand Up @@ -144,7 +144,7 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg)
return 0;
}

static int ensure_path(struct lxc_arguments *args, char **confpath, const char *path)
static int ensure_path(char **confpath, const char *path)
{
int fd;
char *fullpath = NULL;
Expand Down Expand Up @@ -300,7 +300,7 @@ int main(int argc, char *argv[])
}

if (my_args.pidfile)
if (ensure_path(&my_args, &c->pidfile, my_args.pidfile) < 0) {
if (ensure_path(&c->pidfile, my_args.pidfile) < 0) {
ERROR("Failed to ensure pidfile '%s'", my_args.pidfile);
goto out;
}
Expand Down

0 comments on commit 6899425

Please sign in to comment.