qemuAgentGetUsers: Fix return value on success

Return 0 on success to match the documentation. The callers only check
for negative values.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2020-03-13 10:02:48 +01:00
parent 09aac3b6ff
commit 060d49d7b0

View File

@ -2399,7 +2399,7 @@ qemuAgentGetUsers(qemuAgentPtr agent,
return -1;
}
return ndata;
return 0;
}
/* Returns: 0 on success