From: Christian Brauner Date: Mon, 20 Aug 2018 23:06:05 +0000 (+0200) Subject: attach: move struct declaration to top X-Git-Tag: lxc-3.1.0~137^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef05d368873ffcea49d89f68d4ff0d93840310df;p=thirdparty%2Flxc.git attach: move struct declaration to top Signed-off-by: Christian Brauner --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 9d866902a..4965e1e8e 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -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;