Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Add some missing casts of ioctl arg.
details: https://anonhg.NetBSD.org/src/rev/e867b6056ef3
branches: trunk
changeset: 486328:e867b6056ef3
user: minoura <minoura%NetBSD.org@localhost>
date: Fri May 19 04:53:25 2000 +0000
description:
Add some missing casts of ioctl arg.
Obviously autoconfiguration wouldn't work on big-endian machines.
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r a884033d527e -r e867b6056ef3 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Fri May 19 04:37:20 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Fri May 19 04:53:25 2000 +0000
@@ -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 @@
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 */
Home |
Main Index |
Thread Index |
Old Index