diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-14 06:10:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-14 06:11:19 +0200 |
commit | 71fda00f320379f5cbee8e118848de98caaa229d (patch) | |
tree | 00a913086d70abadb1185e1343d97df860b0d612 /src/core/dbus-cgroup.c | |
parent | 14bf2c9d375db6a4670bc0ef0e521e35a939a498 (diff) |
list: make our list macros a bit easier to use by not requring type spec on each invocation
We can determine the list entry type via the typeof() gcc construct, and
so we should to make the macros much shorter to use.
Diffstat (limited to 'src/core/dbus-cgroup.c')
-rw-r--r-- | src/core/dbus-cgroup.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c index 9ebcad9da6..5654b8c711 100644 --- a/src/core/dbus-cgroup.c +++ b/src/core/dbus-cgroup.c @@ -273,8 +273,7 @@ int bus_cgroup_set_property( a->bandwidth = u64; if (!exist) - LIST_PREPEND(CGroupBlockIODeviceBandwidth, device_bandwidths, - c->blockio_device_bandwidths, a); + LIST_PREPEND(device_bandwidths, c->blockio_device_bandwidths, a); } n++; @@ -369,8 +368,7 @@ int bus_cgroup_set_property( a->weight = ul; if (!exist) - LIST_PREPEND(CGroupBlockIODeviceWeight, device_weights, - c->blockio_device_weights, a); + LIST_PREPEND(device_weights,c->blockio_device_weights, a); } n++; @@ -517,7 +515,7 @@ int bus_cgroup_set_property( a->m = !!strchr(rwm, 'm'); if (!exist) - LIST_PREPEND(CGroupDeviceAllow, device_allow, c->device_allow, a); + LIST_PREPEND(device_allow, c->device_allow, a); } n++; |