Module Name:    src
Committed By:   hannken
Date:           Sat Aug 16 07:22:30 UTC 2014

Modified Files:
        src/sys/fs/ptyfs: ptyfs_subr.c

Log Message:
Needs HASH_SLIST, not HASH_LIST.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/fs/ptyfs/ptyfs_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/ptyfs/ptyfs_subr.c
diff -u src/sys/fs/ptyfs/ptyfs_subr.c:1.31 src/sys/fs/ptyfs/ptyfs_subr.c:1.32
--- src/sys/fs/ptyfs/ptyfs_subr.c:1.31	Fri Aug 15 13:40:39 2014
+++ src/sys/fs/ptyfs/ptyfs_subr.c	Sat Aug 16 07:22:30 2014
@@ -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 @@ void
 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 @@ ptyfs_hashdone(void)
 {
 	
 	mutex_destroy(&ptyfs_hashlock);
-	hashdone(ptyfs_node_tbl, HASH_LIST, ptyfs_node_mask);
+	hashdone(ptyfs_node_tbl, HASH_SLIST, ptyfs_node_mask);
 }
 
 /*

Reply via email to