Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/puffs give names to the enums so we can cast by name ...



details:   https://anonhg.NetBSD.org/src/rev/ad479a8bbdc7
branches:  trunk
changeset: 960114:ad479a8bbdc7
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 08 17:34:30 2021 +0000

description:
give names to the enums so we can cast by name for lint

diffstat:

 sys/fs/puffs/puffs_msgif.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 294cba42c52c -r ad479a8bbdc7 sys/fs/puffs/puffs_msgif.h
--- a/sys/fs/puffs/puffs_msgif.h        Mon Mar 08 17:34:10 2021 +0000
+++ b/sys/fs/puffs/puffs_msgif.h        Mon Mar 08 17:34:30 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs_msgif.h,v 1.85 2019/09/23 12:00:57 christos Exp $        */
+/*     $NetBSD: puffs_msgif.h,v 1.86 2021/03/08 17:34:30 christos Exp $        */
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -61,7 +61,7 @@
 #define PUFFSOP_OPCLASS(a)     ((a) & PUFFSOP_OPCMASK)
 #define PUFFSOP_WANTREPLY(a)   (((a) & PUFFSOPFLAG_FAF) == 0)
 
-enum {
+enum puffs_vfs {
        PUFFS_VFS_MOUNT,        PUFFS_VFS_START,        PUFFS_VFS_UNMOUNT,
        PUFFS_VFS_ROOT,         PUFFS_VFS_QUOTACTL,     PUFFS_VFS_STATVFS,
        PUFFS_VFS_SYNC,         PUFFS_VFS_VGET,         PUFFS_VFS_FHTOVP,
@@ -70,7 +70,7 @@
 };
 #define PUFFS_VFS_MAX PUFFS_VFS_SUSPEND
 
-enum {
+enum puffs_vn {
        PUFFS_VN_LOOKUP,        PUFFS_VN_CREATE,        PUFFS_VN_MKNOD,
        PUFFS_VN_OPEN,          PUFFS_VN_CLOSE,         PUFFS_VN_ACCESS,
        PUFFS_VN_GETATTR,       PUFFS_VN_SETATTR,       PUFFS_VN_READ,
@@ -96,7 +96,7 @@
 /*
  * These signal invalid parameters the file system returned.
  */
-enum {
+enum puffs_err {
        PUFFS_ERR_ERROR,
        PUFFS_ERR_MAKENODE,     PUFFS_ERR_LOOKUP,       PUFFS_ERR_READDIR,
        PUFFS_ERR_READLINK,     PUFFS_ERR_READ,         PUFFS_ERR_WRITE,



Home | Main Index | Thread Index | Old Index