diff options
author | antoine <antoine@FreeBSD.org> | 2009-09-06 13:31:05 +0000 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2009-09-06 13:31:05 +0000 |
commit | 3aaee1a8e79ec7fcb75cc5bf09db503586864806 (patch) | |
tree | 60670a1d8c62a459189fa5e2b7abb4027272a7ff /sys/kern/subr_witness.c | |
parent | 928d94e891af48cd9e0227071145d79664c1a8b9 (diff) | |
download | FreeBSD-src-3aaee1a8e79ec7fcb75cc5bf09db503586864806.zip FreeBSD-src-3aaee1a8e79ec7fcb75cc5bf09db503586864806.tar.gz |
Change w_notrunning and w_stillcold from pointer to array so that sizeof
returns what is expected.
PR: kern/138557
Discussed with: brucec@
MFC after: 1 month
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r-- | sys/kern/subr_witness.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 799dbcc..aa46edb 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -469,8 +469,8 @@ static struct witness_lock_order_data *w_lofree = NULL; static struct witness_lock_order_hash w_lohash; static int w_max_used_index = 0; static unsigned int w_generation = 0; -static const char *w_notrunning = "Witness not running\n"; -static const char *w_stillcold = "Witness is still cold\n"; +static const char w_notrunning[] = "Witness not running\n"; +static const char w_stillcold[] = "Witness is still cold\n"; static struct witness_order_list_entry order_lists[] = { |