Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/lfs fix stupid typo in the 64-bit branch of the d_na...



details:   https://anonhg.NetBSD.org/src/rev/4d86ca2ff765
branches:  trunk
changeset: 341124:4d86ca2ff765
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon Oct 19 04:22:28 2015 +0000

description:
fix stupid typo in the 64-bit branch of the d_namlen accessor

diffstat:

 sys/ufs/lfs/lfs_accessors.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2e7f6ed8dea7 -r 4d86ca2ff765 sys/ufs/lfs/lfs_accessors.h
--- a/sys/ufs/lfs/lfs_accessors.h       Mon Oct 19 04:22:18 2015 +0000
+++ b/sys/ufs/lfs/lfs_accessors.h       Mon Oct 19 04:22:28 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_accessors.h,v 1.39 2015/10/19 04:21:48 dholland Exp $      */
+/*     $NetBSD: lfs_accessors.h,v 1.40 2015/10/19 04:22:28 dholland Exp $      */
 
 /*  from NetBSD: lfs.h,v 1.165 2015/07/24 06:59:32 dholland Exp  */
 /*  from NetBSD: dinode.h,v 1.22 2013/01/22 09:39:18 dholland Exp  */
@@ -313,7 +313,7 @@
 {
        if (fs->lfs_is64) {
                KASSERT(fs->lfs_hasolddirfmt == 0);
-               return dh->u_64.dh_type;
+               return dh->u_64.dh_namlen;
        } else if (fs->lfs_hasolddirfmt && LFS_LITTLE_ENDIAN_ONDISK(fs)) {
                /* low-order byte of old 16-bit namlen field */
                return dh->u_32.dh_type;



Home | Main Index | Thread Index | Old Index