Commit 3e45c948 by Serge Hallyn

Revert "bionic: Replace rindex by strrchr"

This reverts commit 86f0eb65.
parent 2edb53c7
...@@ -780,7 +780,7 @@ static void setup_cpuset_if_needed(char **subsystems, char *path) ...@@ -780,7 +780,7 @@ static void setup_cpuset_if_needed(char **subsystems, char *path)
parentpath = strdup(path); parentpath = strdup(path);
if (!parentpath) if (!parentpath)
return; return;
if ((p = strrchr(parentpath, '/'))) if ((p = rindex(parentpath, '/')))
*p = '\0'; *p = '\0';
v = get_value(parentpath, "cpuset.mems"); v = get_value(parentpath, "cpuset.mems");
set_value(path, "cpuset.mems", v); set_value(path, "cpuset.mems", v);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment