/**
* qemuMonitorRemoveFdset:
* @mon: monitor object
- * @fdset: the fdset to remove
+ * @fdset: id of the fdset to remove
*
- * Attempts to remove a fdset from qemu and close associated file descriptors
+ * Attempts to remove @fdset from qemu and close associated file descriptors
* Returns 0 if ok, and -1 on failure */
int
qemuMonitorRemoveFdset(qemuMonitor *mon,
- int fdset)
+ unsigned int fdset)
{
- VIR_DEBUG("fdset=%d", fdset);
+ VIR_DEBUG("fdset=%u", fdset);
QEMU_CHECK_MONITOR(mon);
- if (fdset < 0) {
- virReportError(VIR_ERR_INVALID_ARG, "%s",
- _("fdset must be valid"));
- return -1;
- }
-
return qemuMonitorJSONRemoveFdset(mon, fdset);
}
int
qemuMonitorRemoveFdset(qemuMonitor *mon,
- int fdset);
+ unsigned int fdset);
typedef struct _qemuMonitorFdsetFdInfo qemuMonitorFdsetFdInfo;
struct _qemuMonitorFdsetFdInfo {
int qemuMonitorJSONRemoveFdset(qemuMonitor *mon,
- int fdset)
+ unsigned int fdset)
{
g_autoptr(virJSONValue) reply = NULL;
g_autoptr(virJSONValue) cmd = qemuMonitorJSONMakeCommand("remove-fd",
- "i:fdset-id", fdset,
+ "u:fdset-id", fdset,
NULL);
if (!cmd)