mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu: monitor: Make 'id' in 'struct _qemuMonitorFdsetInfo' unsigned
Similarly to the 'qemuMonitorRemoveFdset', it doesn't make sense to store it as signed when only unsigned values are expected. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
b25f2a2192
commit
9b07991c19
@ -983,7 +983,7 @@ struct _qemuMonitorFdsetFdInfo {
|
||||
};
|
||||
typedef struct _qemuMonitorFdsetInfo qemuMonitorFdsetInfo;
|
||||
struct _qemuMonitorFdsetInfo {
|
||||
int id;
|
||||
unsigned int id;
|
||||
qemuMonitorFdsetFdInfo *fds;
|
||||
int nfds;
|
||||
};
|
||||
|
@ -3704,7 +3704,7 @@ qemuMonitorJSONQueryFdsetsParse(virJSONValue *msg,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (virJSONValueObjectGetNumberInt(entry, "fdset-id", &fdsetinfo->id) < 0) {
|
||||
if (virJSONValueObjectGetNumberUint(entry, "fdset-id", &fdsetinfo->id) < 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("query-fdsets reply was missing 'fdset-id'"));
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user