]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
SHARE_NS options should be before OPT_USAGE
authorTycho Andersen <tycho@tycho.ws>
Thu, 14 Dec 2017 00:57:48 +0000 (00:57 +0000)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 17 Dec 2017 15:56:47 +0000 (16:56 +0100)
Signed-off-by: Tycho Andersen <tycho@tycho.ws>
src/lxc/tools/arguments.h
src/lxc/tools/lxc_start.c

index 963f84c1f68febc0d7b579c63db4fdefa997259c..5fd7c39cbc3d77e65754256869bfd4bdafac3d22 100644 (file)
@@ -157,6 +157,11 @@ struct lxc_arguments {
 #define OPT_VERSION OPT_USAGE - 1
 #define OPT_RCFILE OPT_USAGE - 2
 
+#define OPT_SHARE_NET OPT_USAGE - 3
+#define OPT_SHARE_IPC OPT_USAGE - 4
+#define OPT_SHARE_UTS OPT_USAGE - 5
+#define OPT_SHARE_PID OPT_USAGE - 6
+
 extern int lxc_arguments_parse(struct lxc_arguments *args, int argc,
                               char *const argv[]);
 
index 293cf86f435366f60afe919334a75ec4f53921ef..eeb14e2911faf3a70534f50f27337dc9f5c5698e 100644 (file)
 #include "confile.h"
 #include "arguments.h"
 
-#define OPT_SHARE_NET OPT_USAGE + 1
-#define OPT_SHARE_IPC OPT_USAGE + 2
-#define OPT_SHARE_UTS OPT_USAGE + 3
-
 static struct lxc_list defines;
 
 static int ensure_path(char **confpath, const char *path)