mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
3cd67992f5
commit
9203f5202b
4 changed files with 10 additions and 10 deletions
|
@ -209,7 +209,7 @@ void mips_jazz_init (ram_addr_t ram_size,
|
|||
for (n = 0; n < nb_nics; n++) {
|
||||
nd = &nd_table[n];
|
||||
if (!nd->model)
|
||||
nd->model = "dp83932";
|
||||
nd->model = qemu_strdup("dp83932");
|
||||
if (strcmp(nd->model, "dp83932") == 0) {
|
||||
dp83932_init(nd, 0x80001000, 2, rc4030[4],
|
||||
rc4030_opaque, rc4030_dma_memory_rw);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue