diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-05-29 00:17:34 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-05-29 00:17:34 +0000 |
commit | 04f22301b1591dc3ad7bd6d58fc5515fbe615cab (patch) | |
tree | 707b3295f21abc37b1315e0ba2a8ab3a087a771c /sys/kern/kern_malloc.c | |
parent | a68a3241a2d1e9f8ae90216909eee955ad98be88 (diff) |
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.c | 4 |
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 |