Revision e7fb1406 hw/sun4u.c

b/hw/sun4u.c
78 78
    for (i = 0; i < sizeof(image); i++)
79 79
        image[i] = m48t59_read(nvram, i) & 0xff;
80 80

  
81
    strcpy(header->boot_devices, boot_device);
81
    strcpy((char *)header->boot_devices, boot_device);
82 82
    header->nboot_devices = strlen(boot_device) & 0xff;
83 83
    header->crc = cpu_to_be16(OHW_compute_crc(header, 0x00, 0xF8));
84 84

  
......
91 91
extern int nographic;
92 92

  
93 93
static int sun4u_NVRAM_set_params (m48t59_t *nvram, uint16_t NVRAM_size,
94
                                   const unsigned char *arch,
94
                                   const char *arch,
95 95
                                   ram_addr_t RAM_size,
96 96
                                   const char *boot_devices,
97 97
                                   uint32_t kernel_image, uint32_t kernel_size,
......
110 110
    memset(image, '\0', sizeof(image));
111 111

  
112 112
    // Try to match PPC NVRAM
113
    strcpy(header->struct_ident, "QEMU_BIOS");
113
    strcpy((char *)header->struct_ident, "QEMU_BIOS");
114 114
    header->struct_version = cpu_to_be32(3); /* structure v3 */
115 115

  
116 116
    header->nvram_size = cpu_to_be16(NVRAM_size);
117 117
    header->nvram_arch_ptr = cpu_to_be16(sizeof(ohwcfg_v3_t));
118 118
    header->nvram_arch_size = cpu_to_be16(sizeof(struct sparc_arch_cfg));
119
    strcpy(header->arch, arch);
119
    strcpy((char *)header->arch, arch);
120 120
    header->nb_cpus = smp_cpus & 0xff;
121 121
    header->RAM0_base = 0;
122 122
    header->RAM0_size = cpu_to_be64((uint64_t)RAM_size);
123
    strcpy(header->boot_devices, boot_devices);
123
    strcpy((char *)header->boot_devices, boot_devices);
124 124
    header->nboot_devices = strlen(boot_devices) & 0xff;
125 125
    header->kernel_image = cpu_to_be64((uint64_t)kernel_image);
126 126
    header->kernel_size = cpu_to_be64((uint64_t)kernel_size);

Also available in: Unified diff