diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-09-09 16:50:24 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-09-09 16:50:24 +0000 |
commit | db0a8a77ed55dc3936f22e404c97f7fa57ea1b49 (patch) | |
tree | fce5e236707dd8a951f9376afb277c71032e5e68 /sys/dev/raidframe/rf_debugMem.h | |
parent | 69660582124d73b68700fe04ac7349b2e5eb7787 (diff) |
The obvious bzero/memset -> M_ZERO changes.
Diffstat (limited to 'sys/dev/raidframe/rf_debugMem.h')
-rw-r--r-- | sys/dev/raidframe/rf_debugMem.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_debugMem.h b/sys/dev/raidframe/rf_debugMem.h index a22b9dc5917..fd257a10d76 100644 --- a/sys/dev/raidframe/rf_debugMem.h +++ b/sys/dev/raidframe/rf_debugMem.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rf_debugMem.h,v 1.5 2002/12/16 07:01:03 tdeval Exp $ */ +/* $OpenBSD: rf_debugMem.h,v 1.6 2007/09/09 16:50:23 krw Exp $ */ /* $NetBSD: rf_debugMem.h,v 1.7 1999/09/05 01:58:11 oster Exp $ */ /* @@ -46,8 +46,7 @@ #include <sys/malloc.h> #define RF_Malloc(_p_,_size_,_cast_) do { \ - _p_ = _cast_ malloc((u_long)_size_, M_RAIDFRAME, M_WAITOK); \ - bzero((char *)_p_, _size_); \ + _p_ = _cast_ malloc((u_long)_size_, M_RAIDFRAME, M_WAITOK | M_ZERO);\ if (rf_memDebug) \ rf_record_malloc(_p_, _size_, __LINE__, __FILE__); \ } while (0) |