]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: fix type of NetClass dbus property
authorLennart Poettering <lennart@poettering.net>
Wed, 14 Oct 2015 17:31:42 +0000 (19:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 19 Oct 2015 21:07:18 +0000 (23:07 +0200)
it's exposed as uint32_t and it is internally an uint32_t, hence no need
to treat it as an unsigned.

src/core/dbus-unit.c

index cd88a87340783211f144d0627e6ff19698dad8bd..52daf116104e5f5105ab7864216b7d5535040cdd 100644 (file)
@@ -679,7 +679,7 @@ const sd_bus_vtable bus_unit_vtable[] = {
         SD_BUS_PROPERTY("Asserts", "a(sbbsi)", property_get_conditions, offsetof(Unit, asserts), 0),
         SD_BUS_PROPERTY("LoadError", "(ss)", property_get_load_error, 0, SD_BUS_VTABLE_PROPERTY_CONST),
         SD_BUS_PROPERTY("Transient", "b", bus_property_get_bool, offsetof(Unit, transient), SD_BUS_VTABLE_PROPERTY_CONST),
-        SD_BUS_PROPERTY("NetClass", "u", bus_property_get_unsigned, offsetof(Unit, cgroup_netclass_id), 0),
+        SD_BUS_PROPERTY("NetClass", "u", NULL, offsetof(Unit, cgroup_netclass_id), 0),
 
         SD_BUS_METHOD("Start", "s", "o", method_start, SD_BUS_VTABLE_UNPRIVILEGED),
         SD_BUS_METHOD("Stop", "s", "o", method_stop, SD_BUS_VTABLE_UNPRIVILEGED),