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/ch.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/ch.c')
-rw-r--r-- | sys/scsi/ch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c index ecab879..985011f 100644 --- a/sys/scsi/ch.c +++ b/sys/scsi/ch.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ch.c,v 1.44 1998/04/16 12:28:30 peter Exp $ + * $Id: ch.c,v 1.45 1998/05/06 09:11:20 phk Exp $ */ #include "opt_devfs.h" @@ -132,7 +132,7 @@ static dev_t chsetunit __P((dev_t, int)); /* So, like, why not "int"? */ static errval ch_devopen __P((dev_t, int, int, struct proc *, struct scsi_link *)); -static errval ch_devioctl __P((dev_t, int, caddr_t, int, struct proc *, +static errval ch_devioctl __P((dev_t, u_long, caddr_t, int, struct proc *, struct scsi_link *)); static errval ch_devclose __P((dev_t, int, int, struct proc *, struct scsi_link *)); @@ -293,7 +293,7 @@ ch_devclose(dev, flags, fmt, p, link) static errval ch_devioctl(dev, cmd, data, flags, p, link) dev_t dev; - int cmd; + u_long cmd; caddr_t data; int flags; struct proc *p; |