[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] hvmloader: Fix build with gcc 4.1 and later.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1207815164 -3600 # Node ID 3105a548e2f54ca283794baf1cfbe9b8d34c9e96 # Parent 5b25d3264f7e3ca1d9e958be8a8543fcf1fc5958 hvmloader: Fix build with gcc 4.1 and later. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- tools/firmware/hvmloader/hvmloader.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff -r 5b25d3264f7e -r 3105a548e2f5 tools/firmware/hvmloader/hvmloader.c --- a/tools/firmware/hvmloader/hvmloader.c Wed Apr 09 17:49:25 2008 +0100 +++ b/tools/firmware/hvmloader/hvmloader.c Thu Apr 10 09:12:44 2008 +0100 @@ -360,7 +360,7 @@ static int scan_etherboot_nic(void *copy for ( ; ; ) { /* Invalid signature means we're out of option ROMs. */ - if ( strncmp(rom->signature, "\x55\xaa", 2) || + if ( strncmp((char *)rom->signature, "\x55\xaa", 2) || (rom->rom_size == 0) ) break; @@ -375,7 +375,7 @@ static int scan_etherboot_nic(void *copy pcih = (struct option_rom_pci_header *) ((char *)rom + rom->pci_header_offset); if ( (rom->pci_header_offset != 0) && - !strncmp(pcih->signature, "PCIR", 4) && + !strncmp((char *)pcih->signature, "PCIR", 4) && (pcih->vendor_id == vendor_id) && (pcih->device_id == device_id) ) goto found; @@ -393,7 +393,7 @@ static int scan_etherboot_nic(void *copy ? ((struct option_rom_pnp_header *) ((char *)rom + rom->expansion_header_offset)) : ((struct option_rom_pnp_header *)NULL)); - while ( (pnph != NULL) && strncmp(pnph->signature, "$PnP", 4) ) + while ( (pnph != NULL) && strncmp((char *)pnph->signature, "$PnP", 4) ) pnph = ((pnph->next_header_offset != 0) ? ((struct option_rom_pnp_header *) ((char *)rom + pnph->next_header_offset)) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |