Commit 267d974e by Michel Normand Committed by Daniel Lezcano

typo in restart and checkpoint

parent 96819f4d
...@@ -154,11 +154,11 @@ extern int lxc_checkpoint(const char *name, const char *statefile, int flags); ...@@ -154,11 +154,11 @@ extern int lxc_checkpoint(const char *name, const char *statefile, int flags);
* Restart a container * Restart a container
* @name : the name of the container being restarted * @name : the name of the container being restarted
* @statefile: string object from which the container is restarted * @statefile: string object from which the container is restarted
* @rcfile: container configuration file. * @conf: lxc_conf structure.
* @flags : restart flags (an ORed value) * @flags : restart flags (an ORed value)
* Returns 0 on success, < 0 otherwise * Returns 0 on success, < 0 otherwise
*/ */
extern int lxc_restart(const char *, const char *, const char *, int); extern int lxc_restart(const char *, const char *, struct lxc_conf *, int);
/* /*
* Returns the version number of the library * Returns the version number of the library
......
/* /*
* lxc: linux Container library * lxc: linux Container library
* *
* (C) Copyright IBM Corp. 2007, 2008 * (C) Copyright IBM Corp. 2007, 2010
* *
* Authors: * Authors:
* Daniel Lezcano <dlezcano at fr.ibm.com> * Daniel Lezcano <dlezcano at fr.ibm.com>
...@@ -112,12 +112,10 @@ int main(int argc, char *argv[]) ...@@ -112,12 +112,10 @@ int main(int argc, char *argv[])
return ret; return ret;
ret = lxc_checkpoint(my_args.name, my_args.statefile, my_args.flags); ret = lxc_checkpoint(my_args.name, my_args.statefile, my_args.flags);
if (ret) { if (ret)
ERROR("failed to checkpoint '%s'", my_args.name); ERROR("failed to checkpoint '%s'", my_args.name);
return ret; else
} INFO("'%s' checkpointed", my_args.name);
INFO("'%s' checkpointed", my_args.name);
return ret; return ret;
} }
/* /*
* lxc: linux Container library * lxc: linux Container library
* *
* (C) Copyright IBM Corp. 2007, 2008 * (C) Copyright IBM Corp. 2007, 2010
* *
* Authors: * Authors:
* Daniel Lezcano <dlezcano at fr.ibm.com> * Daniel Lezcano <dlezcano at fr.ibm.com>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
lxc_log_define(lxc_restart, lxc); lxc_log_define(lxc_restart, lxc);
int lxc_restart(const char *name, const char *statefile, const char *rcfile, int lxc_restart(const char *name, const char *statefile, struct lxc_conf *conf,
int flags) int flags)
{ {
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment