mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
09aac3b6ff
commit
060d49d7b0
|
@ -2399,7 +2399,7 @@ qemuAgentGetUsers(qemuAgentPtr agent,
|
|||
return -1;
|
||||
}
|
||||
|
||||
return ndata;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Returns: 0 on success
|
||||
|
|
Loading…
Reference in New Issue