diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-09-26 17:26:47 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-09-26 17:26:47 -0700 |
commit | 63983e2397d813246b851771c13397ff700e239e (patch) | |
tree | ec017be59b5a2b49f9abdb40b59d17e0f830b707 /src | |
parent | 8c77862e70eac7f61cd402e9ef33a5b0ca1c6426 (diff) |
Fix Solaris build: missing static prototype & typo in variable name
Diffstat (limited to 'src')
-rw-r--r-- | src/solx_devfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/solx_devfs.c b/src/solx_devfs.c index a500327..08de4d0 100644 --- a/src/solx_devfs.c +++ b/src/solx_devfs.c @@ -100,7 +100,8 @@ static int xsvc_fd = -1; #define DEBUGON 0 - +static int pci_device_solx_devfs_map_range(struct pci_device *dev, + struct pci_device_mapping *map); static int pci_device_solx_devfs_read_rom( struct pci_device * dev, void * buffer ); @@ -861,7 +862,7 @@ pci_device_solx_devfs_map_range(struct pci_device *dev, } } - map->memory = mmap(NULL, map->size, prot, MAP_SHARED, xsvs_fd, + map->memory = mmap(NULL, map->size, prot, MAP_SHARED, xsvc_fd, map->base); if (map->memory == MAP_FAILED) { err = errno; |