Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/ptyfs Needs HASH_SLIST, not HASH_LIST.
details: https://anonhg.NetBSD.org/src/rev/3d1678aed49f
branches: trunk
changeset: 331604:3d1678aed49f
user: hannken <hannken%NetBSD.org@localhost>
date: Sat Aug 16 07:22:30 2014 +0000
description:
Needs HASH_SLIST, not HASH_LIST.
diffstat:
sys/fs/ptyfs/ptyfs_subr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 90ed7be224aa -r 3d1678aed49f sys/fs/ptyfs/ptyfs_subr.c
--- a/sys/fs/ptyfs/ptyfs_subr.c Sat Aug 16 06:18:01 2014 +0000
+++ b/sys/fs/ptyfs/ptyfs_subr.c Sat Aug 16 07:22:30 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptyfs_subr.c,v 1.31 2014/08/15 13:40:39 hannken Exp $ */
+/* $NetBSD: ptyfs_subr.c,v 1.32 2014/08/16 07:22:30 hannken Exp $ */
/*
* Copyright (c) 1993
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ptyfs_subr.c,v 1.31 2014/08/15 13:40:39 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ptyfs_subr.c,v 1.32 2014/08/16 07:22:30 hannken Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -124,7 +124,7 @@
ptyfs_hashinit(void)
{
- ptyfs_node_tbl = hashinit(16, HASH_LIST, true, &ptyfs_node_mask);
+ ptyfs_node_tbl = hashinit(16, HASH_SLIST, true, &ptyfs_node_mask);
mutex_init(&ptyfs_hashlock, MUTEX_DEFAULT, IPL_NONE);
}
@@ -136,7 +136,7 @@
{
mutex_destroy(&ptyfs_hashlock);
- hashdone(ptyfs_node_tbl, HASH_LIST, ptyfs_node_mask);
+ hashdone(ptyfs_node_tbl, HASH_SLIST, ptyfs_node_mask);
}
/*
Home |
Main Index |
Thread Index |
Old Index