From d7687363504e734b53fcd868d1a069de8b599158 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 30 Sep 2009 15:30:33 +0000 Subject: typo fix --- pci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pci.c b/pci.c index 2b25097..5bc2a45 100644 --- a/pci.c +++ b/pci.c @@ -12,7 +12,7 @@ #include #include "common.h" -#define CONFIG_SPACE_ZIZE 64 +#define CONFIG_SPACE_SIZE 64 static char *proc_pci_path_default = "/proc/bus/pci/devices"; char* proc_pci_path = NULL; @@ -29,7 +29,7 @@ static void __attribute__((noreturn)) error_and_die(char *msg, ...) } extern struct pciusb_entries pci_probe(void) { - u8 buf[CONFIG_SPACE_ZIZE]; + u8 buf[CONFIG_SPACE_SIZE]; struct pciusb_entries r; static struct pci_access *pacc; @@ -55,9 +55,9 @@ extern struct pciusb_entries pci_probe(void) { struct pciusb_entry *e = &r.entries[r.nb]; unsigned char class_prog = 0; - memset(buf, 0, CONFIG_SPACE_ZIZE); // make sure not to retrieve values from previous devices - pci_setup_cache(dev, (u8*)buf, CONFIG_SPACE_ZIZE); - pci_read_block(dev, 0, buf, CONFIG_SPACE_ZIZE); + memset(buf, 0, CONFIG_SPACE_SIZE); // make sure not to retrieve values from previous devices + pci_setup_cache(dev, (u8*)buf, CONFIG_SPACE_SIZE); + pci_read_block(dev, 0, buf, CONFIG_SPACE_SIZE); pci_fill_info(dev, PCI_FILL_IDENT | PCI_FILL_CLASS | PCI_FILL_CAPS | PCI_FILL_EXT_CAPS); pciusb_initialize(e); -- cgit v1.2.1