From 9203f5202bf4bc7e4669ba19d3e6aac7761bd385 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 6 Oct 2009 12:16:53 +0100 Subject: 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 Signed-off-by: Anthony Liguori --- net.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'net.c') 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)); } -- cgit v1.1