From 47d63e29e1fd0966347d7b7b67f395066002bd68 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 8 Mar 2021 17:34:30 +0000 Subject: [PATCH] give names to the enums so we can cast by name for lint --- sys/fs/puffs/puffs_msgif.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/fs/puffs/puffs_msgif.h b/sys/fs/puffs/puffs_msgif.h index 618d25059093..590982f588a2 100644 --- a/sys/fs/puffs/puffs_msgif.h +++ b/sys/fs/puffs/puffs_msgif.h @@ -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 @@ enum { }; #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 @@ enum { /* * 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,