diff options
author | 1996-07-12 08:57:57 +0000 | |
---|---|---|
committer | 1996-07-12 08:57:57 +0000 | |
commit | 50d07fa55fa5e1e90b9798dcf135bde1da113685 (patch) | |
tree | 7d3cfbdd4d1c0b66b76d42804bc284ce52278709 | |
parent | refresh to the latest bpf code release. (diff) | |
download | wireguard-openbsd-50d07fa55fa5e1e90b9798dcf135bde1da113685.tar.xz wireguard-openbsd-50d07fa55fa5e1e90b9798dcf135bde1da113685.zip |
Fixed wrong type of argument passing for SCIOCREASSIGN.
(thanks Theo).
-rw-r--r-- | sys/scsi/sd.c | 4 | ||||
-rw-r--r-- | sys/sys/scsiio.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index fcda755c91e..287fdbde779 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.16 1996/07/11 22:17:46 pefo Exp $ */ +/* $OpenBSD: sd.c,v 1.17 1996/07/12 08:57:57 pefo Exp $ */ /* $NetBSD: sd.c,v 1.100.4.1 1996/06/04 23:14:08 thorpej Exp $ */ /* @@ -751,7 +751,7 @@ sdioctl(dev, cmd, addr, flag, p) case SCIOCREASSIGN: if ((flag & FWRITE) == 0) return EBADF; - error = sd_reassign_blocks(sd, *(*(int **)addr)); + error = sd_reassign_blocks(sd, (*(int *)addr)); return error; default: diff --git a/sys/sys/scsiio.h b/sys/sys/scsiio.h index a96afed3522..2935ebe66a7 100644 --- a/sys/sys/scsiio.h +++ b/sys/sys/scsiio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiio.h,v 1.3 1996/07/11 22:17:47 pefo Exp $ */ +/* $OpenBSD: scsiio.h,v 1.4 1996/07/12 08:57:59 pefo Exp $ */ /* $NetBSD: scsiio.h,v 1.3 1994/06/29 06:45:09 cgd Exp $ */ #ifndef _SYS_SCSIIO_H_ @@ -60,6 +60,6 @@ struct scsi_addr { #define SCIOCDECONFIG _IO('Q', 5) /* please dissappear */ #define SCIOCRECONFIG _IO('Q', 6) /* please check again */ #define SCIOCRESET _IO('Q', 7) /* reset the device */ -#define SCIOCREASSIGN _IO('Q', 8) /* reassign block */ +#define SCIOCREASSIGN _IOW('Q', 8, int) /* reassign block */ #endif /* _SYS_SCSIIO_H_ */ |