Revision 7267c094 hw/ppc_prep.c
b/hw/ppc_prep.c | ||
---|---|---|
550 | 550 |
DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; |
551 | 551 |
DriveInfo *fd[MAX_FD]; |
552 | 552 |
|
553 |
sysctrl = qemu_mallocz(sizeof(sysctrl_t));
|
|
553 |
sysctrl = g_malloc0(sizeof(sysctrl_t));
|
|
554 | 554 |
|
555 | 555 |
linux_boot = (kernel_filename != NULL); |
556 | 556 |
|
... | ... | |
599 | 599 |
hw_error("qemu: could not load PPC PREP bios '%s'\n", bios_name); |
600 | 600 |
} |
601 | 601 |
if (filename) { |
602 |
qemu_free(filename);
|
|
602 |
g_free(filename);
|
|
603 | 603 |
} |
604 | 604 |
|
605 | 605 |
if (linux_boot) { |
... | ... | |
673 | 673 |
nb_nics1 = NE2000_NB_MAX; |
674 | 674 |
for(i = 0; i < nb_nics1; i++) { |
675 | 675 |
if (nd_table[i].model == NULL) { |
676 |
nd_table[i].model = qemu_strdup("ne2k_isa");
|
|
676 |
nd_table[i].model = g_strdup("ne2k_isa");
|
|
677 | 677 |
} |
678 | 678 |
if (strcmp(nd_table[i].model, "ne2k_isa") == 0) { |
679 | 679 |
isa_ne2000_init(ne2000_io[i], ne2000_irq[i], &nd_table[i]); |
Also available in: Unified diff