summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-08-03 13:56:59 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:48 -0500
commitc3cf0d3f96ed2abdb7b57808244ba39e6a57da8b (patch)
tree84b12511f096aa93821121b02f3cfacd05507c0c /net.c
parent09c0848e52d9f06160c0f3fd04fb4fc521370c2a (diff)
downloadqemu-c3cf0d3f96ed2abdb7b57808244ba39e6a57da8b.tar.gz
net: Fix do_set_link() return type
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:
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 b5e8c9ff30..1b531e7d0b 100644
--- a/net.c
+++ b/net.c
@@ -2905,7 +2905,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;
@@ -2918,7 +2918,7 @@ done:
if (!vc) {
monitor_printf(mon, "could not find network device '%s'", name);
- return 0;
+ return;
}
if (strcmp(up_or_down, "up") == 0)
@@ -2931,8 +2931,6 @@ done:
if (vc->link_status_changed)
vc->link_status_changed(vc);
-
- return 1;
}
void net_cleanup(void)