From: Stéphane Graber Date: Thu, 23 Jan 2014 02:25:05 +0000 (-0500) Subject: bionic: Replace rindex by strrchr X-Git-Tag: lxc-1.0.0.beta3~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f0eb65a0abc651c656ff602b823ba693f675c5;p=thirdparty%2Flxc.git bionic: Replace rindex by strrchr Signed-off-by: Stéphane Graber --- diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index 49f1ba1f8..fc23a0663 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -780,7 +780,7 @@ static void setup_cpuset_if_needed(char **subsystems, char *path) parentpath = strdup(path); if (!parentpath) return; - if ((p = rindex(parentpath, '/'))) + if ((p = strrchr(parentpath, '/'))) *p = '\0'; v = get_value(parentpath, "cpuset.mems"); set_value(path, "cpuset.mems", v);