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:
Blue Swirl
2008-12-14 12:54:23 +00:00
parent bb20ce577c
commit c5d270009e
17 changed files with 54 additions and 48 deletions

View File

@@ -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);