]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach_options: use standard C pointer syntax
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 5 Feb 2021 09:38:27 +0000 (10:38 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 5 Feb 2021 11:13:28 +0000 (12:13 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach_options.h

index df92e569c2160f844325dd0fd5eba78002009e10..c24fb91204373af1d2446aa1ef26bca150c2c86d 100644 (file)
@@ -78,7 +78,7 @@ typedef struct lxc_attach_options_t {
         * If the current directory does not exist in the container, the root
         * directory will be used instead because of kernel defaults.
         */
-       charinitial_cwd;
+       char *initial_cwd;
 
        /*! The user-id to run as.
         *
@@ -98,12 +98,12 @@ typedef struct lxc_attach_options_t {
        lxc_attach_env_policy_t env_policy;
 
        /*! Extra environment variables to set in the container environment */
-       char** extra_env_vars;
+       char **extra_env_vars;
 
        /*! Names of environment variables in existing environment to retain
         * in container environment.
         */
-       char** extra_keep_env;
+       char **extra_keep_env;
 
        /**@{*/
        /*! File descriptors for stdin, stdout and stderr,
@@ -155,8 +155,8 @@ typedef struct lxc_attach_options_t {
  * Representation of a command to run in a container.
  */
 typedef struct lxc_attach_command_t {
-       char* program; /*!< The program to run (passed to execvp) */
-       char** argv;   /*!< The argv pointer of that program, including the program itself in argv[0] */
+       char *program;  /*!< The program to run (passed to execvp) */
+       char **argv;    /*!< The argv pointer of that program, including the program itself in argv[0] */
 } lxc_attach_command_t;
 
 /*!