]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Do some cleanup in the lxc.h file
authordlezcano <dlezcano>
Mon, 17 Nov 2008 14:24:07 +0000 (14:24 +0000)
committerdlezcano <dlezcano>
Mon, 17 Nov 2008 14:24:07 +0000 (14:24 +0000)
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Do some cleanup in the lxc.h file, remove dead code and move definition to
the right place.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/checkpoint.c
src/lxc/lxc.h
src/lxc/stop.c

index ee9579480249664cba984df92f2b5ed838664623..744801c62124829395ce8029cb2f38a6615a54a0 100644 (file)
@@ -38,6 +38,7 @@
 
 #include <lxc.h>
 
+#define MAXPIDLEN 20
 
 #if __i386__
 #    define __NR_checkpoint 333
index 843fd45ec7ac87153da5d55077c4118e7ce48851..af3f0878f4690391de6423cb7af78a0534b5cd90 100644 (file)
@@ -30,7 +30,7 @@ extern "C" {
 /**
  Following code is for liblxc.
 
- liblxc/lxc.h will contain exports of liblxc
+ lxc/lxc.h will contain exports of liblxc
  **/
 
 #include <lxc/lxc_state.h>
@@ -43,11 +43,6 @@ extern "C" {
 #include <lxc/cgroup.h>
 #include <lxc/monitor.h>
 
-/* #define LXCPATH "/var/lxc" */
-#define MAXPIDLEN 20
-
-struct lxc_mem_stat;
-
 /*
  * Create the container object. Creates the /lxc/<name> directory
  * and fills it with the files corresponding to the configuration
index cb502551b9457f6476d4d6449e8260bce7cef11d..2d050f3cd09d2d3d65fe94c6856a5e3ee6874d2a 100644 (file)
@@ -33,6 +33,8 @@
 
 #include <lxc/lxc.h>
 
+#define MAXPIDLEN 20
+
 int lxc_stop(const char *name)
 {
        char init[MAXPATHLEN];