diff options
author | simokawa <simokawa@FreeBSD.org> | 2003-10-02 08:56:14 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2003-10-02 08:56:14 +0000 |
commit | d7c0bc6e9cf1277c4ffdde4cc0787e806c2e2293 (patch) | |
tree | b2ca1e60433cfc7dbc56694f4d8399c1834933f6 /sys/cam | |
parent | a787da5c6b11d1eeb7f85c8f766715eb5651543b (diff) | |
download | FreeBSD-src-d7c0bc6e9cf1277c4ffdde4cc0787e806c2e2293.zip FreeBSD-src-d7c0bc6e9cf1277c4ffdde4cc0787e806c2e2293.tar.gz |
Be kind to 64bit architectures.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_target.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c index ec8894d..d9cfdc3 100644 --- a/sys/cam/scsi/scsi_target.c +++ b/sys/cam/scsi/scsi_target.c @@ -556,12 +556,12 @@ targwrite(dev_t dev, struct uio *uio, int ioflag) ("write - uiomove failed (%d)\n", error)); break; } - priority = fuword(&user_ccb->ccb_h.pinfo.priority); + priority = fuword32(&user_ccb->ccb_h.pinfo.priority); if (priority == -1) { error = EINVAL; break; } - func_code = fuword(&user_ccb->ccb_h.func_code); + func_code = fuword32(&user_ccb->ccb_h.func_code); switch (func_code) { case XPT_ACCEPT_TARGET_IO: case XPT_IMMED_NOTIFY: @@ -683,10 +683,10 @@ targusermerge(struct targ_softc *softc, struct targ_cmd_descr *descr, * preserved, the rest we get from the user ccb. (See xpt_merge_ccb) */ xpt_setup_ccb(k_ccbh, softc->path, descr->priority); - k_ccbh->retry_count = fuword(&u_ccbh->retry_count); + k_ccbh->retry_count = fuword32(&u_ccbh->retry_count); k_ccbh->func_code = descr->func_code; - k_ccbh->flags = fuword(&u_ccbh->flags); - k_ccbh->timeout = fuword(&u_ccbh->timeout); + k_ccbh->flags = fuword32(&u_ccbh->flags); + k_ccbh->timeout = fuword32(&u_ccbh->timeout); ccb_len = targccblen(k_ccbh->func_code) - sizeof(struct ccb_hdr); error = copyin(u_ccbh + 1, k_ccbh + 1, ccb_len); if (error != 0) { |