]> git.proxmox.com Git - mirror_lxc.git/commitdiff
tools: lxc-start: remove unused argument
author2xsec <dh48.jeong@samsung.com>
Fri, 5 Oct 2018 02:07:02 +0000 (11:07 +0900)
committer2xsec <dh48.jeong@samsung.com>
Fri, 5 Oct 2018 02:07:02 +0000 (11:07 +0900)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
src/lxc/tools/lxc_start.c

index 74d2e06eaba1790033b4934eb20b54f4c13142e0..4553cb5ca361c72a9d3e68e5d6c04cf036a0beb7 100644 (file)
@@ -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;
 
@@ -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;
@@ -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;
                }