diff options
author | peter <peter@FreeBSD.org> | 2003-06-27 23:10:58 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-06-27 23:10:58 +0000 |
commit | c8946bbbb5e7facd90e48133d4617a78eedd198d (patch) | |
tree | 181ccc3ba2178670314b85e5fa4dcfcfa67d3c9c /sys/dev/ips/ips_commands.c | |
parent | 6df8dff079da162cd074e7e158f9132366f08c00 (diff) | |
download | FreeBSD-src-c8946bbbb5e7facd90e48133d4617a78eedd198d.zip FreeBSD-src-c8946bbbb5e7facd90e48133d4617a78eedd198d.tar.gz |
Fix pointer/int warnings so this compiles on amd64. The driver wants
to store an int in the bio->bio_driver1 (a void *). It is big enough,
but you have to match the int sizes first before doing the cast.
Glanced at by: scottl
Diffstat (limited to 'sys/dev/ips/ips_commands.c')
-rw-r--r-- | sys/dev/ips/ips_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ips/ips_commands.c b/sys/dev/ips/ips_commands.c index 7efb56c..bcdb925 100644 --- a/sys/dev/ips/ips_commands.c +++ b/sys/dev/ips/ips_commands.c @@ -97,7 +97,7 @@ static void ips_io_request_callback(void *cmdptr, bus_dma_segment_t *segments,in } command_struct = (ips_io_cmd *)command->command_buffer; command_struct->id = command->id; - command_struct->drivenum = (uint32_t)iobuf->bio_driver1; + command_struct->drivenum = (uintptr_t)iobuf->bio_driver1; if(segnum != 1){ if(ips_read_request(iobuf)) cmdtype = IPS_SG_READ_CMD; |