[lxc-devel] [PATCH v5] Parse rootfs->path

Christian Brauner christianvanbrauner at gmail.com
Thu Oct 22 07:18:14 UTC 2015


Changes:

        if ((s3 = strstr(s2, ":/")))
                s2[strlen(s2) - strlen(s3)]

obviously simplifies to

        if ((s3 = strstr(s2, ":/")))
        	*s3 = '\0';

Christian Brauner (1):
  Parse rootfs->path

 src/lxc/conf.c | 98 +++++++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 73 insertions(+), 25 deletions(-)

-- 
2.6.1



More information about the lxc-devel mailing list