do_set_link() returns int, but Monitor handler functions should
always return void.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
-int do_set_link(Monitor *mon, const char *name, const char *up_or_down)
+void do_set_link(Monitor *mon, const char *name, const char *up_or_down)
{
VLANState *vlan;
VLANClientState *vc = NULL;
{
VLANState *vlan;
VLANClientState *vc = NULL;
if (!vc) {
monitor_printf(mon, "could not find network device '%s'", name);
if (!vc) {
monitor_printf(mon, "could not find network device '%s'", name);
}
if (strcmp(up_or_down, "up") == 0)
}
if (strcmp(up_or_down, "up") == 0)
if (vc->link_status_changed)
vc->link_status_changed(vc);
if (vc->link_status_changed)
vc->link_status_changed(vc);
void qemu_handler_true(void *opaque);
void do_info_network(Monitor *mon);
void qemu_handler_true(void *opaque);
void do_info_network(Monitor *mon);
-int do_set_link(Monitor *mon, const char *name, const char *up_or_down);
+void do_set_link(Monitor *mon, const char *name, const char *up_or_down);
void do_info_usernet(Monitor *mon);
void do_info_usernet(Monitor *mon);