From 71fda00f320379f5cbee8e118848de98caaa229d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 14 Oct 2013 06:10:14 +0200 Subject: 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. --- src/core/dbus-cgroup.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/core/dbus-cgroup.c') 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++; -- cgit v1.2.3-54-g00ecf