]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
typo in restart and checkpoint
authorMichel Normand <normand@fr.ibm.com>
Thu, 21 Jan 2010 13:34:08 +0000 (14:34 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 21 Jan 2010 13:34:08 +0000 (14:34 +0100)
Signed-off-by: Michel Normand <normand@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc.h
src/lxc/lxc_checkpoint.c
src/lxc/restart.c

index 8cf21c173755bfc7f6c35e1249f00b7c3d6fcb91..b0b9f4e61f578f4e0a50d1a7442f8a7cbc9edc0d 100644 (file)
@@ -154,11 +154,11 @@ extern int lxc_checkpoint(const char *name, const char *statefile, int flags);
  * Restart a container
  * @name : the name of the container being restarted
  * @statefile: string object from which the container is restarted
- * @rcfile: container configuration file.
+ * @conf: lxc_conf structure.
  * @flags : restart flags (an ORed value)
  * 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
index 4fee1193620ddf99e7bd231e1f82955eabab10b7..a8c74a9a3d95a0196be2d3ef3cddd12d61fd35cd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * lxc: linux Container library
  *
- * (C) Copyright IBM Corp. 2007, 2008
+ * (C) Copyright IBM Corp. 2007, 2010
  *
  * Authors:
  * Daniel Lezcano <dlezcano at fr.ibm.com>
@@ -112,12 +112,10 @@ int main(int argc, char *argv[])
                return ret;
 
        ret = lxc_checkpoint(my_args.name, my_args.statefile, my_args.flags);
-       if (ret) {
+       if (ret)
                ERROR("failed to checkpoint '%s'", my_args.name);
-               return ret;
-       }
-
-       INFO("'%s' checkpointed", my_args.name);
+       else
+               INFO("'%s' checkpointed", my_args.name);
 
        return ret;
 }
index 42576c1481640f9563c249531cc10c6c80a75361..467489ebc29c014690518bb542b3040d3e09c3c2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * lxc: linux Container library
  *
- * (C) Copyright IBM Corp. 2007, 2008
+ * (C) Copyright IBM Corp. 2007, 2010
  *
  * Authors:
  * Daniel Lezcano <dlezcano at fr.ibm.com>
@@ -25,7 +25,7 @@
 
 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)
 {
        return 0;