From 9e2f7c11fb6ba35ffec2274da3e2d08b10d23965 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 15 Apr 2010 03:11:11 +0200 Subject: core: add minimal templating system --- dbus-job.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'dbus-job.c') diff --git a/dbus-job.c b/dbus-job.c index 9c6a798075..b0f575b11b 100644 --- a/dbus-job.c +++ b/dbus-job.c @@ -46,7 +46,6 @@ static int bus_job_append_unit(Manager *m, DBusMessageIter *i, const char *prope Job *j = data; DBusMessageIter sub; char *p; - const char *id; assert(m); assert(i); @@ -59,9 +58,7 @@ static int bus_job_append_unit(Manager *m, DBusMessageIter *i, const char *prope if (!(p = unit_dbus_path(j->unit))) return -ENOMEM; - id = unit_id(j->unit); - - if (!dbus_message_iter_append_basic(&sub, DBUS_TYPE_STRING, &id) || + if (!dbus_message_iter_append_basic(&sub, DBUS_TYPE_STRING, &j->unit->meta.id) || !dbus_message_iter_append_basic(&sub, DBUS_TYPE_OBJECT_PATH, &p)) { free(p); return -ENOMEM; -- cgit v1.2.3-54-g00ecf