diff options
author | jhb <jhb@FreeBSD.org> | 2007-03-09 16:04:44 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-03-09 16:04:44 +0000 |
commit | 8e9f4f8a3953fdcea4f2de5a6005a9162ea334d7 (patch) | |
tree | 86f2a7e7abe75c0b251616c227cdca31d02d66dc /sys/kern/kern_mutex.c | |
parent | 7894c3ad2075da8bd7baf7a8a8e07142b2924575 (diff) | |
download | FreeBSD-src-8e9f4f8a3953fdcea4f2de5a6005a9162ea334d7.zip FreeBSD-src-8e9f4f8a3953fdcea4f2de5a6005a9162ea334d7.tar.gz |
Use C99-style struct member initialization for lock classes.
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r-- | sys/kern/kern_mutex.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index dc58adb..0fd5d7e 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -96,17 +96,17 @@ static void db_show_mtx(struct lock_object *lock); * Lock classes for sleep and spin mutexes. */ struct lock_class lock_class_mtx_sleep = { - "sleep mutex", - LC_SLEEPLOCK | LC_RECURSABLE, + .lc_name = "sleep mutex", + .lc_flags = LC_SLEEPLOCK | LC_RECURSABLE, #ifdef DDB - db_show_mtx + .lc_ddb_show = db_show_mtx, #endif }; struct lock_class lock_class_mtx_spin = { - "spin mutex", - LC_SPINLOCK | LC_RECURSABLE, + .lc_name = "spin mutex", + .lc_flags = LC_SPINLOCK | LC_RECURSABLE, #ifdef DDB - db_show_mtx + .lc_ddb_show = db_show_mtx, #endif }; |