diff options
Diffstat (limited to 'kern/eventcount.c')
-rw-r--r-- | kern/eventcount.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/eventcount.c b/kern/eventcount.c index 1418c82..b562f1a 100644 --- a/kern/eventcount.c +++ b/kern/eventcount.c @@ -35,6 +35,8 @@ * */ +#include <string.h> + #include <mach/machine.h> #include <kern/ast.h> #include "cpu_number.h" @@ -67,7 +69,7 @@ evc_init(evc_t ev) { int i; - bzero((char*)ev, sizeof(*ev)); + memset(ev, 0, sizeof(*ev)); /* keep track of who is who */ for (i = 0; i < MAX_EVCS; i++) |