diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-10 16:02:57 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-10 16:02:57 +0200 |
commit | 0515650329a6e13b84db40fbe6a369cd25b19c2e (patch) | |
tree | 589bd54b5e86a6e2bee9d7a8eebdee0e7ffeb013 /src/core/dbus-mount.c | |
parent | core: drop property_get_syscall_errno() (diff) | |
download | systemd-0515650329a6e13b84db40fbe6a369cd25b19c2e.tar.xz systemd-0515650329a6e13b84db40fbe6a369cd25b19c2e.zip |
core: use bus_property_get_*() functions instead of NULL
Diffstat (limited to 'src/core/dbus-mount.c')
-rw-r--r-- | src/core/dbus-mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/dbus-mount.c b/src/core/dbus-mount.c index 36582857c7..0088bdae49 100644 --- a/src/core/dbus-mount.c +++ b/src/core/dbus-mount.c @@ -102,8 +102,8 @@ const sd_bus_vtable bus_mount_vtable[] = { SD_BUS_PROPERTY("LazyUnmount", "b", bus_property_get_bool, offsetof(Mount, lazy_unmount), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("ForceUnmount", "b", bus_property_get_bool, offsetof(Mount, force_unmount), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(Mount, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE), - SD_BUS_PROPERTY("UID", "u", NULL, offsetof(Unit, ref_uid), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE), - SD_BUS_PROPERTY("GID", "u", NULL, offsetof(Unit, ref_gid), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE), + SD_BUS_PROPERTY("UID", "u", bus_property_get_uid, offsetof(Unit, ref_uid), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE), + SD_BUS_PROPERTY("GID", "u", bus_property_get_gid, offsetof(Unit, ref_gid), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE), BUS_EXEC_COMMAND_VTABLE("ExecMount", offsetof(Mount, exec_command[MOUNT_EXEC_MOUNT]), SD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION), BUS_EXEC_COMMAND_VTABLE("ExecUnmount", offsetof(Mount, exec_command[MOUNT_EXEC_UNMOUNT]), SD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION), BUS_EXEC_COMMAND_VTABLE("ExecRemount", offsetof(Mount, exec_command[MOUNT_EXEC_REMOUNT]), SD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION), |