summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net.c b/net.c
index cf6b0337ef..0b531a69b4 100644
--- a/net.c
+++ b/net.c
@@ -2934,7 +2934,7 @@ 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)
{
VLANState *vlan;
VLANClientState *vc = NULL;
@@ -2947,7 +2947,7 @@ done:
if (!vc) {
monitor_printf(mon, "could not find network device '%s'", name);
- return 0;
+ return;
}
if (strcmp(up_or_down, "up") == 0)
@@ -2960,8 +2960,6 @@ done:
if (vc->link_status_changed)
vc->link_status_changed(vc);
-
- return 1;
}
void net_cleanup(void)