Quoting Qiang Huang (h.huangqi...@huawei.com):
> 
> Signed-off-by: Qiang Huang <h.huangqi...@huawei.com>

Acked-by: Serge E. Hallyn <serge.hal...@ubuntu.com>

> ---
>  src/lxc/lxccontainer.c | 7 -------
>  src/lxc/utils.c        | 7 +++++++
>  src/lxc/utils.h        | 1 +
>  3 files changed, 8 insertions(+), 7 deletions(-)
> 
> diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
> index ea5a84e..f5d41b3 100644
> --- a/src/lxc/lxccontainer.c
> +++ b/src/lxc/lxccontainer.c
> @@ -69,13 +69,6 @@ static bool file_exists(char *f)
>       return stat(f, &statbuf) == 0;
>  }
> 
> -static void remove_trailing_slashes(char *p)
> -{
> -     int l = strlen(p);
> -     while (--l >= 0 && (p[l] == '/' || p[l] == '\n'))
> -             p[l] = '\0';
> -}
> -
>  /*
>   * A few functions to help detect when a container creation failed.
>   * If a container creation was killed partway through, then trying
> diff --git a/src/lxc/utils.c b/src/lxc/utils.c
> index a908b5c..dc94a3c 100644
> --- a/src/lxc/utils.c
> +++ b/src/lxc/utils.c
> @@ -211,6 +211,13 @@ extern int mkdir_p(const char *dir, mode_t mode)
>       return 0;
>  }
> 
> +extern void remove_trailing_slashes(char *p)
> +{
> +     int l = strlen(p);
> +     while (--l >= 0 && (p[l] == '/' || p[l] == '\n'))
> +             p[l] = '\0';
> +}
> +
>  static char *copy_global_config_value(char *p)
>  {
>       int len = strlen(p);
> diff --git a/src/lxc/utils.h b/src/lxc/utils.h
> index 55f98fa..87a914b 100644
> --- a/src/lxc/utils.h
> +++ b/src/lxc/utils.h
> @@ -37,6 +37,7 @@ extern int lxc_rmdir_onedev(char *path);
>  extern int lxc_setup_fs(void);
>  extern int get_u16(unsigned short *val, const char *arg, int base);
>  extern int mkdir_p(const char *dir, mode_t mode);
> +extern void remove_trailing_slashes(char *p);
>  extern const char *get_rundir(void);
> 
>  /*
> -- 
> 1.8.3
> 

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to