- free(m->cgroup_mount_point);
- m->cgroup_mount_point = NULL;
- if ((r = cgroup_get_subsys_mount_point(m->cgroup_controller, &m->cgroup_mount_point)))
- return cg_translate_error(r, errno);
-
- pid = getpid();
-
- if ((r = cgroup_get_current_controller_path(pid, m->cgroup_controller, &cp)))
- return cg_translate_error(r, errno);
-
- snprintf(suffix, sizeof(suffix), "/systemd-%u", (unsigned) pid);
+ snprintf(suffix, sizeof(suffix), "/systemd-%lu", (unsigned long) getpid());