diff options
author | dfr <dfr@FreeBSD.org> | 1998-06-07 17:13:14 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-06-07 17:13:14 +0000 |
commit | 1d5f38ac2264102518a09c66a7b285f57e81e67e (patch) | |
tree | 83ce2f0e2b8041d2c933d3beffc1f4465ea5b929 /sys/scsi/st.c | |
parent | 83423d0e5a4ad035e44392f0427cb39232031e45 (diff) | |
download | FreeBSD-src-1d5f38ac2264102518a09c66a7b285f57e81e67e.zip FreeBSD-src-1d5f38ac2264102518a09c66a7b285f57e81e67e.tar.gz |
This commit fixes various 64bit portability problems required for
FreeBSD/alpha. The most significant item is to change the command
argument to ioctl functions from int to u_long. This change brings us
inline with various other BSD versions. Driver writers may like to
use (__FreeBSD_version == 300003) to detect this change.
The prototype FreeBSD/alpha machdep will follow in a couple of days
time.
Diffstat (limited to 'sys/scsi/st.c')
-rw-r--r-- | sys/scsi/st.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c index 9da75d2..aa31ee6 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -12,7 +12,7 @@ * on the understanding that TFS is not responsible for the correct * functioning of this software in any circumstances. * - * $Id: st.c,v 1.86 1998/04/16 10:35:50 peter Exp $ + * $Id: st.c,v 1.87 1998/04/17 22:37:16 des Exp $ */ /* @@ -144,7 +144,7 @@ static dev_t stsetunit(dev_t dev, int unit) { return STSETUNIT(dev, unit); } static errval st_open(dev_t dev, int flags, int fmt, struct proc *p, struct scsi_link *sc_link); -static errval st_ioctl(dev_t dev, int cmd, caddr_t addr, int flag, +static errval st_ioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p, struct scsi_link *sc_link); static errval st_close(dev_t dev, int flag, int fmt, struct proc *p, struct scsi_link *sc_link); @@ -983,7 +983,7 @@ badnews: * knows about the internals of this device */ static errval -st_ioctl(dev_t dev, int cmd, caddr_t arg, int flag, +st_ioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc *p, struct scsi_link *sc_link) { errval errcode = 0; |