Source-Changes-HG archive

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

[src/trunk]: src/lib/libpuffs * fix typo



details:   https://anonhg.NetBSD.org/src/rev/f93f00c3283a
branches:  trunk
changeset: 755028:f93f00c3283a
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu May 20 13:07:28 2010 +0000

description:
* fix typo
* fix "that's not supposed to be there" causing off-by-one in array
* make compile regardless of dev_t size

diffstat:

 lib/libpuffs/opdump.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 82c6b74085a5 -r f93f00c3283a lib/libpuffs/opdump.c
--- a/lib/libpuffs/opdump.c     Thu May 20 12:51:16 2010 +0000
+++ b/lib/libpuffs/opdump.c     Thu May 20 13:07:28 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: opdump.c,v 1.30 2010/01/07 22:46:11 pooka Exp $        */
+/*     $NetBSD: opdump.c,v 1.31 2010/05/20 13:07:28 pooka Exp $        */
 
 /*
  * Copyright (c) 2005, 2006  Antti Kantee.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: opdump.c,v 1.30 2010/01/07 22:46:11 pooka Exp $");
+__RCSID("$NetBSD: opdump.c,v 1.31 2010/05/20 13:07:28 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -63,7 +63,7 @@
        "PUFFS_VFS_INIT",
        "PUFFS_VFS_DONE",
        "PUFFS_VFS_SNAPSHOT",
-       "PUFFS_VFS_EXTATTCTL",
+       "PUFFS_VFS_EXTATTRCTL",
        "PUFFS_VFS_SUSPEND"
 };
 /* XXX! */
@@ -109,7 +109,6 @@
        "PUFFS_VN_WHITEOUT",
        "PUFFS_VN_GETPAGES",
        "PUFFS_VN_PUTPAGES",
-       "PUFFS_VN_BWRITE",
        "PUFFS_VN_GETEXTATTR",
        "PUFFS_VN_LISTEXTATTR",
        "PUFFS_VN_OPENEXTATTR",
@@ -295,7 +294,7 @@
        printf("gid: %s\n", buf);
 
        DEFAULTBUF();
-       if (vap->va_fsid != (dev_t)PUFFS_VNOVAL)
+       if ((unsigned long long)vap->va_fsid!=(unsigned long long)PUFFS_VNOVAL)
                snprintf(buf, sizeof(buf), "0x%llx",
                    (unsigned long long)vap->va_fsid);
        printf(DINT DINT "fsid: %s, ", buf);



Home | Main Index | Thread Index | Old Index