monitor: Convert do_closefd() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Luiz Capitulino 2009-10-16 12:23:51 -03:00 committed by Anthony Liguori
parent f0d6000a9e
commit 18f3a5151c
2 changed files with 3 additions and 2 deletions

View File

@ -1889,7 +1889,7 @@ static void do_getfd(Monitor *mon, const QDict *qdict, QObject **ret_data)
QLIST_INSERT_HEAD(&mon->fds, monfd, next);
}
static void do_closefd(Monitor *mon, const QDict *qdict)
static void do_closefd(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
const char *fdname = qdict_get_str(qdict, "fdname");
mon_fd_t *monfd;

View File

@ -1029,7 +1029,8 @@ ETEXI
.args_type = "fdname:s",
.params = "closefd name",
.help = "close a file descriptor previously passed via SCM rights",
.mhandler.cmd = do_closefd,
.user_print = monitor_user_noop,
.mhandler.cmd_new = do_closefd,
},
STEXI