From: Christian Brauner Date: Sat, 23 Dec 2017 11:02:45 +0000 (+0100) Subject: conf: move ringbuffer members to anonymous struct X-Git-Tag: lxc-3.0.0.beta1~76^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24945df77be5036e7f3c7a7b580a2af4ce8f3213;p=thirdparty%2Flxc.git conf: move ringbuffer members to anonymous struct Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.h b/src/lxc/conf.h index 58c6c4d1b..f75ede86c 100644 --- a/src/lxc/conf.h +++ b/src/lxc/conf.h @@ -174,18 +174,19 @@ struct lxc_console { char name[MAXPATHLEN]; struct termios *tios; struct lxc_tty_state *tty_state; + struct /* lxc_console_ringbuf */ { + /* size of the ringbuffer */ + uint64_t buffer_size; - /* size of the ringbuffer */ - uint64_t buffer_size; + /* path to the log file for the ringbuffer */ + char *buffer_log_file; - /* path to the log file for the ringbuffer */ - char *buffer_log_file; + /* fd to the log file for the ringbuffer */ + int buffer_log_file_fd; - /* fd to the log file for the ringbuffer */ - int buffer_log_file_fd; - - /* the in-memory ringbuffer */ - struct lxc_ringbuf ringbuf; + /* the in-memory ringbuffer */ + struct lxc_ringbuf ringbuf; + }; }; /*