Module Name: src
Committed By: rmind
Date: Wed May 25 00:06:45 UTC 2011
Modified Files:
src/sys/fs/tmpfs: tmpfs_subr.c
Log Message:
tmpfs_dir_lookup: use 'name' variable in memcmp() as intended; fix warning.
To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/fs/tmpfs/tmpfs_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/tmpfs/tmpfs_subr.c
diff -u src/sys/fs/tmpfs/tmpfs_subr.c:1.68 src/sys/fs/tmpfs/tmpfs_subr.c:1.69
--- src/sys/fs/tmpfs/tmpfs_subr.c:1.68 Tue May 24 23:16:16 2011
+++ src/sys/fs/tmpfs/tmpfs_subr.c Wed May 25 00:06:45 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: tmpfs_subr.c,v 1.68 2011/05/24 23:16:16 rmind Exp $ */
+/* $NetBSD: tmpfs_subr.c,v 1.69 2011/05/25 00:06:45 rmind Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.68 2011/05/24 23:16:16 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.69 2011/05/25 00:06:45 rmind Exp $");
#include <sys/param.h>
#include <sys/dirent.h>
@@ -494,7 +494,7 @@
TAILQ_FOREACH(de, &node->tn_spec.tn_dir.tn_dir, td_entries) {
if (de->td_namelen != nlen)
continue;
- if (memcmp(de->td_name, cnp->cn_nameptr, nlen) != 0)
+ if (memcmp(de->td_name, name, nlen) != 0)
continue;
break;
}