diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-10-06 12:16:53 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-06 14:36:10 -0500 |
commit | 9203f5202bf4bc7e4669ba19d3e6aac7761bd385 (patch) | |
tree | aca938144077f730db381296f559d4badb5a221f /net.h | |
parent | Don't assign a static string to NICInfo::model (diff) | |
download | qemu-kvm-9203f5202bf4bc7e4669ba19d3e6aac7761bd385.tar.gz qemu-kvm-9203f5202bf4bc7e4669ba19d3e6aac7761bd385.tar.bz2 qemu-kvm-9203f5202bf4bc7e4669ba19d3e6aac7761bd385.zip |
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.h')
-rw-r--r-- | net.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -95,10 +95,10 @@ enum { struct NICInfo { uint8_t macaddr[6]; - const char *model; - const char *name; - const char *devaddr; - const char *id; + char *model; + char *name; + char *devaddr; + char *id; VLANState *vlan; VLANClientState *vc; void *private; |