]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: move struct declaration to top
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 20 Aug 2018 23:06:05 +0000 (01:06 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 21 Aug 2018 14:54:36 +0000 (16:54 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index 9d866902a042d6d3c334448c2ffd68ab67e55ba8..4965e1e8eeb3e09ce022deac85ad7d538ad06349 100644 (file)
@@ -89,6 +89,9 @@
 
 lxc_log_define(attach, lxc);
 
+/* Define default options if no options are supplied by the user. */
+static lxc_attach_options_t attach_static_default_options = LXC_ATTACH_OPTIONS_DEFAULT;
+
 /* /proc/pid-to-str/status\0 = (5 + 21 + 7 + 1) */
 #define __PROC_STATUS_LEN (5 + (LXC_NUMSTRLEN64) + 7 + 1)
 static struct lxc_proc_context_info *lxc_proc_get_context_info(pid_t pid)
@@ -652,9 +655,6 @@ static void lxc_attach_get_init_uidgid(uid_t *init_uid, gid_t *init_gid)
         */
 }
 
-/* Define default options if no options are supplied by the user. */
-static lxc_attach_options_t attach_static_default_options = LXC_ATTACH_OPTIONS_DEFAULT;
-
 static bool fetch_seccomp(struct lxc_container *c, lxc_attach_options_t *options)
 {
        int ret;