chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small cleanup
[elogind.git]
/
src
/
core
/
dbus-unit.c
diff --git
a/src/core/dbus-unit.c
b/src/core/dbus-unit.c
index 5f1b2afd5b1692def9f9e9e031807e16f6fa20bc..575f8eb36ad2edd16af848e4a1c8ab85bdad3295 100644
(file)
--- a/
src/core/dbus-unit.c
+++ b/
src/core/dbus-unit.c
@@
-314,7
+314,7
@@
static int bus_unit_append_cgroups(DBusMessageIter *i, const char *property, voi
return -ENOMEM;
LIST_FOREACH(by_unit, cgb, u->cgroup_bondings) {
return -ENOMEM;
LIST_FOREACH(by_unit, cgb, u->cgroup_bondings) {
-
char _cleanup_free_
*t = NULL;
+
_cleanup_free_ char
*t = NULL;
bool success;
t = cgroup_bonding_to_string(cgb);
bool success;
t = cgroup_bonding_to_string(cgb);
@@
-341,7
+341,7
@@
static int bus_unit_append_cgroup_attrs(DBusMessageIter *i, const char *property
return -ENOMEM;
LIST_FOREACH(by_unit, a, u->cgroup_attributes) {
return -ENOMEM;
LIST_FOREACH(by_unit, a, u->cgroup_attributes) {
-
char _cleanup_free_
*v = NULL;
+
_cleanup_free_ char
*v = NULL;
bool success;
if (a->semantics && a->semantics->map_write)
bool success;
if (a->semantics && a->semantics->map_write)
@@
-1034,7
+1034,7
@@
int bus_unit_cgroup_unset(Unit *u, DBusMessageIter *iter) {
unit_remove_drop_in(u, runtime, controller);
/* Try to migrate the old group away */
unit_remove_drop_in(u, runtime, controller);
/* Try to migrate the old group away */
- if (cg_
get_by_pid
(controller, 0, &target) >= 0)
+ if (cg_
pid_get_path
(controller, 0, &target) >= 0)
cgroup_bonding_migrate_to(u->cgroup_bondings, target, false);
cgroup_bonding_free(b, true);
cgroup_bonding_migrate_to(u->cgroup_bondings, target, false);
cgroup_bonding_free(b, true);