diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-03 12:39:44 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-02-03 12:40:09 +0100 |
commit | 2b53c70b6429868029048244b8d21769148375e1 (patch) | |
tree | a7fd47a10912bc4a21ce4c1d45fd4dc9112793d6 /dbus-manager.c | |
parent | 501c7d0b77607fe858911b1c94070b63b6cc221e (diff) |
dbus: properly encode job type
Diffstat (limited to 'dbus-manager.c')
-rw-r--r-- | dbus-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus-manager.c b/dbus-manager.c index 3ccf8de650..32d0745025 100644 --- a/dbus-manager.c +++ b/dbus-manager.c @@ -180,7 +180,7 @@ DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, DBusM goto oom; } - job_type = job_type_to_string(u->meta.job->state); + job_type = job_type_to_string(u->meta.job->type); } else { job_id = 0; job_path = unit_path; @@ -237,7 +237,7 @@ DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, DBusM id = (uint32_t) j->id; unit = unit_id(j->unit); state = job_state_to_string(j->state); - type = job_type_to_string(j->state); + type = job_type_to_string(j->type); if (!(job_path = job_dbus_path(j))) goto oom; |