summaryrefslogtreecommitdiffstats
path: root/sys/dev/raidframe/rf_utils.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2011-06-21 16:46:00 +0000
committertedu <tedu@openbsd.org>2011-06-21 16:46:00 +0000
commit66c5eef8e44fa6a0062a8b01b563d978e5bea571 (patch)
tree8b62093b76544372a53b62275b14e7fe0c206027 /sys/dev/raidframe/rf_utils.c
parentreport the controllers part number. eg, i now know i have a (diff)
downloadwireguard-openbsd-66c5eef8e44fa6a0062a8b01b563d978e5bea571.tar.xz
wireguard-openbsd-66c5eef8e44fa6a0062a8b01b563d978e5bea571.zip
remove stupid casts, ok deraadt
Diffstat (limited to 'sys/dev/raidframe/rf_utils.c')
-rw-r--r--sys/dev/raidframe/rf_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_utils.c b/sys/dev/raidframe/rf_utils.c
index c136b0fe7fa..92769e0d80b 100644
--- a/sys/dev/raidframe/rf_utils.c
+++ b/sys/dev/raidframe/rf_utils.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rf_utils.c,v 1.5 2002/12/16 07:01:05 tdeval Exp $ */
+/* $OpenBSD: rf_utils.c,v 1.6 2011/06/21 16:46:00 tedu Exp $ */
/* $NetBSD: rf_utils.c,v 1.5 2000/01/07 03:41:03 oster Exp $ */
/*
@@ -55,7 +55,7 @@ rf_make_2d_array(int b, int k, RF_AllocListElem_t *allocList)
for (i = 0; i < b; i++) {
RF_MallocAndAdd(retval[i], k * sizeof(RF_RowCol_t),
(RF_RowCol_t *), allocList);
- bzero((char *) retval[i], k * sizeof(RF_RowCol_t));
+ bzero(retval[i], k * sizeof(RF_RowCol_t));
}
return (retval);
}
@@ -78,7 +78,7 @@ rf_make_1d_array(int c, RF_AllocListElem_t *allocList)
RF_MallocAndAdd(retval, c * sizeof(RF_RowCol_t), (RF_RowCol_t *),
allocList);
- bzero((char *) retval, c * sizeof(RF_RowCol_t));
+ bzero(retval, c * sizeof(RF_RowCol_t));
return (retval);
}