mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Warning fixes for Sparc32, Sparc64, PPC
Fix warnings that would be caused by gcc flag -Wwrite-strings and -Wmissing-prototypes. Also fix most PPC specific warnings. git-svn-id: svn://coreboot.org/openbios/openbios-devel@288 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -41,7 +41,7 @@ struct esp_dma {
|
||||
|
||||
typedef struct sd_private {
|
||||
unsigned int bs;
|
||||
char *media_str;
|
||||
const char *media_str;
|
||||
uint32_t sectors;
|
||||
uint8_t media;
|
||||
uint8_t id;
|
||||
@@ -182,7 +182,7 @@ read_capacity(esp_private_t *esp, sd_private_t *sd)
|
||||
static unsigned int
|
||||
inquiry(esp_private_t *esp, sd_private_t *sd)
|
||||
{
|
||||
char *media = "UNKNOWN";
|
||||
const char *media = "UNKNOWN";
|
||||
|
||||
// Setup command = Inquiry
|
||||
memset(esp->buffer, 0, 7);
|
||||
|
||||
Reference in New Issue
Block a user