Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use explicit_memset.
details: https://anonhg.NetBSD.org/src/rev/5512bd8e9fff
branches: trunk
changeset: 337411:5512bd8e9fff
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Apr 13 23:26:54 2015 +0000
description:
Use explicit_memset.
diffstat:
sys/kern/kern_rndpool.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 4f8f598d1e04 -r 5512bd8e9fff sys/kern/kern_rndpool.c
--- a/sys/kern/kern_rndpool.c Mon Apr 13 23:25:14 2015 +0000
+++ b/sys/kern/kern_rndpool.c Mon Apr 13 23:26:54 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_rndpool.c,v 1.12 2015/04/13 23:25:14 riastradh Exp $ */
+/* $NetBSD: kern_rndpool.c,v 1.13 2015/04/13 23:26:54 riastradh Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndpool.c,v 1.12 2015/04/13 23:25:14 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndpool.c,v 1.13 2015/04/13 23:26:54 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -280,8 +280,8 @@
}
- memset(&hash, 0, sizeof(hash));
- memset(digest, 0, sizeof(digest));
+ explicit_memset(&hash, 0, sizeof(hash));
+ expliict_memset(digest, 0, sizeof(digest));
return (len - remain);
}
Home |
Main Index |
Thread Index |
Old Index