]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: move ringbuffer members to anonymous struct
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 23 Dec 2017 11:02:45 +0000 (12:02 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 9 Jan 2018 12:20:12 +0000 (13:20 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.h

index 58c6c4d1b33a7401e49794015ccb601a12528775..f75ede86ce9a3f49d4748357e09ae71c6e6c30a5 100644 (file)
@@ -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;
+       };
 };
 
 /*