summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorminoura <minoura@NetBSD.org>2000-05-19 04:53:25 +0000
committerminoura <minoura@NetBSD.org>2000-05-19 04:53:25 +0000
commitc2e8f674770311a3f35e8f410bb850d2f31a7172 (patch)
tree7b458de8169e1935974f0ac0dc2799b6cb1e45f4 /sys/dev/raidframe
parent49f5aa2818722140f3948282bdc0f7552f2cb47a (diff)
Add some missing casts of ioctl arg.
Obviously autoconfiguration wouldn't work on big-endian machines.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index 889b4dbc3d9..44cd59bbace 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.77 2000/04/27 00:57:48 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.78 2000/05/19 04:53:25 minoura Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -1065,15 +1065,15 @@ raidioctl(dev, cmd, data, flag, p)
return (retcode);
case RAIDFRAME_SET_AUTOCONFIG:
- d = rf_set_autoconfig(raidPtr, *data);
+ d = rf_set_autoconfig(raidPtr, *(int *) data);
printf("New autoconfig value is: %d\n", d);
- *data = d;
+ *(int *) data = d;
return (retcode);
case RAIDFRAME_SET_ROOT:
- d = rf_set_rootpartition(raidPtr, *data);
+ d = rf_set_rootpartition(raidPtr, *(int *) data);
printf("New rootpartition value is: %d\n", d);
- *data = d;
+ *(int *) data = d;
return (retcode);
/* initialize all parity */