aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-06 12:16:53 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-06 14:36:10 -0500
commit9203f5202bf4bc7e4669ba19d3e6aac7761bd385 (patch)
treeaca938144077f730db381296f559d4badb5a221f /net.c
parent3cd67992f5ed8f2afcf849ab9bf17ba730a89b92 (diff)
downloadqemu-9203f5202bf4bc7e4669ba19d3e6aac7761bd385.zip
qemu-9203f5202bf4bc7e4669ba19d3e6aac7761bd385.tar.gz
qemu-9203f5202bf4bc7e4669ba19d3e6aac7761bd385.tar.bz2
Make NICInfo string fields non-const
We now only assign strdup()ed strings to these fields, never static strings. aliguori: fix build for ppc_prep and mips_jazz Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.c')
-rw-r--r--net.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net.c b/net.c
index f2b954c..76e44c9 100644
--- a/net.c
+++ b/net.c
@@ -2813,10 +2813,10 @@ void net_client_uninit(NICInfo *nd)
nd->vlan->nb_guest_devs--;
nb_nics--;
- qemu_free((void *)nd->model);
- qemu_free((void *)nd->name);
- qemu_free((void *)nd->devaddr);
- qemu_free((void *)nd->id);
+ qemu_free(nd->model);
+ qemu_free(nd->name);
+ qemu_free(nd->devaddr);
+ qemu_free(nd->id);
memset(nd, 0, sizeof(*nd));
}