summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2007-05-29 00:17:32 +0000
committerthib <thib@openbsd.org>2007-05-29 00:17:32 +0000
commit5e18f1535bb54e0198255569ce0c0264b6c75d74 (patch)
tree66d3021732696695df5afdee66ff8071f6f82096 /sys/kern/kern_malloc.c
parentput commented out entry for kern.nosuidcoredump=2 in, yes theo & tedu (diff)
downloadwireguard-openbsd-5e18f1535bb54e0198255569ce0c0264b6c75d74.tar.xz
wireguard-openbsd-5e18f1535bb54e0198255569ce0c0264b6c75d74.zip
Add a name argument to the RWLOCK_INITIALIZER macro.
Pick reasonble names for the locks involved.. ok tedu@, art@
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index cd7a54107ef..59ea3233a1a 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.69 2007/04/12 21:47:45 miod Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.70 2007/05/29 00:17:32 thib Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -83,7 +83,7 @@ int buckstring_init = 0;
#if defined(KMEMSTATS) || defined(DIAGNOSTIC) || defined(FFS_SOFTUPDATES)
char *memname[] = INITKMEMNAMES;
char *memall = NULL;
-struct rwlock sysctl_kmemlock = RWLOCK_INITIALIZER;
+struct rwlock sysctl_kmemlock = RWLOCK_INITIALIZER("sysctlklk");
#endif
#ifdef DIAGNOSTIC