summaryrefslogtreecommitdiff
path: root/src/dbus-automount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus-automount.c')
-rw-r--r--src/dbus-automount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dbus-automount.c b/src/dbus-automount.c
index 826842560d..62e8a5fca7 100644
--- a/src/dbus-automount.c
+++ b/src/dbus-automount.c
@@ -46,10 +46,11 @@
const char bus_automount_interface[] _introspect_("Automount") = BUS_AUTOMOUNT_INTERFACE;
DBusHandlerResult bus_automount_message_handler(Unit *u, DBusConnection *c, DBusMessage *message) {
+ Automount *am = AUTOMOUNT(u);
const BusProperty properties[] = {
BUS_UNIT_PROPERTIES,
- { "org.freedesktop.systemd1.Automount", "Where", bus_property_append_string, "s", u->automount.where },
- { "org.freedesktop.systemd1.Automount", "DirectoryMode", bus_property_append_mode, "u", &u->automount.directory_mode },
+ { "org.freedesktop.systemd1.Automount", "Where", bus_property_append_string, "s", am->where },
+ { "org.freedesktop.systemd1.Automount", "DirectoryMode", bus_property_append_mode, "u", &am->directory_mode },
{ NULL, NULL, NULL, NULL, NULL }
};