Client: add method GetInstance()

This commit is contained in:
Max Kellermann
2017-02-25 10:00:05 +01:00
parent 668724de4e
commit 05b8ddac4c
8 changed files with 33 additions and 21 deletions

View File

@@ -182,7 +182,7 @@ handle_status(Client &client, gcc_unused Request args, Response &r)
}
#ifdef ENABLE_DATABASE
const UpdateService *update_service = client.partition.instance.update;
const UpdateService *update_service = client.GetInstance().update;
unsigned updateJobId = update_service != nullptr
? update_service->GetId()
: 0;