summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-04-23 22:09:55 +0000
committerjulian <julian@FreeBSD.org>1998-04-23 22:09:55 +0000
commit740cb0899a07f7440f7536785ee2223941b326d7 (patch)
tree30b5cbe579d26d7049d792219a09ae775784557d /sys
parent7b5f18bb24867c41dabf35e10ee134ffc685f617 (diff)
downloadFreeBSD-src-740cb0899a07f7440f7536785ee2223941b326d7.zip
FreeBSD-src-740cb0899a07f7440f7536785ee2223941b326d7.tar.gz
When calling the open function, specify either FREAD and/or FWRITE
as leaving them both 0 has the same effect as not openning the device at all.
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/wd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/wd.c b/sys/i386/isa/wd.c
index ef1181a..bc21af7 100644
--- a/sys/i386/isa/wd.c
+++ b/sys/i386/isa/wd.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
- * $Id: wd.c,v 1.160 1998/04/22 10:25:17 julian Exp $
+ * $Id: wd.c,v 1.161 1998/04/22 19:27:53 julian Exp $
*/
/* TODO:
@@ -673,7 +673,7 @@ wds_init(void *arg)
int err = 0;
struct ide_geom geom;
- if ((err = wdsopen(du, 0, 0, curproc))) {
+ if ((err = wdsopen(du, FREAD, 0, curproc))) {
printf("wd open failed with %d", err);
return;
}
@@ -2775,5 +2775,5 @@ wdsioctl( void *private, int cmd, caddr_t addr, int flag, struct proc *p)
}
}
-#endif /* NWDC > 0 */
+#endif /* SLICE */
#endif /* NWDC > 0 */
OpenPOWER on IntegriCloud