Source-Changes-HG archive

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

[src/trunk]: src/lib/libpuffs cast to the proper enums for lint



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

description:
cast to the proper enums for lint

diffstat:

 lib/libpuffs/dispatcher.c |  8 ++++----
 lib/libpuffs/opdump.c     |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 7a6dd1580294 -r c06f558241bf lib/libpuffs/dispatcher.c
--- a/lib/libpuffs/dispatcher.c Mon Mar 08 14:37:55 2021 +0000
+++ b/lib/libpuffs/dispatcher.c Mon Mar 08 17:34:10 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dispatcher.c,v 1.48 2014/10/31 13:56:04 manu Exp $     */
+/*     $NetBSD: dispatcher.c,v 1.49 2021/03/08 17:34:10 christos Exp $ */
 
 /*
  * Copyright (c) 2006, 2007, 2008 Antti Kantee.  All Rights Reserved.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: dispatcher.c,v 1.48 2014/10/31 13:56:04 manu Exp $");
+__RCSID("$NetBSD: dispatcher.c,v 1.49 2021/03/08 17:34:10 christos Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -164,7 +164,7 @@
 
        /* Execute actual operation */
        if (PUFFSOP_OPCLASS(preq->preq_opclass) == PUFFSOP_VFS) {
-               switch (preq->preq_optype) {
+               switch ((enum puffs_vfs)preq->preq_optype) {
                case PUFFS_VFS_UNMOUNT:
                {
                        struct puffs_vfsmsg_unmount *auxt = auxbuf;
@@ -260,7 +260,7 @@
        /* XXX: audit return values */
        /* XXX: sync with kernel */
        } else if (PUFFSOP_OPCLASS(preq->preq_opclass) == PUFFSOP_VN) {
-               switch (preq->preq_optype) {
+               switch ((enum puffs_vn)preq->preq_optype) {
                case PUFFS_VN_LOOKUP:
                {
                        struct puffs_vnmsg_lookup *auxt = auxbuf;
diff -r 7a6dd1580294 -r c06f558241bf lib/libpuffs/opdump.c
--- a/lib/libpuffs/opdump.c     Mon Mar 08 14:37:55 2021 +0000
+++ b/lib/libpuffs/opdump.c     Mon Mar 08 17:34:10 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: opdump.c,v 1.37 2014/10/31 13:56:04 manu Exp $ */
+/*     $NetBSD: opdump.c,v 1.38 2021/03/08 17:34:10 christos 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.37 2014/10/31 13:56:04 manu Exp $");
+__RCSID("$NetBSD: opdump.c,v 1.38 2021/03/08 17:34:10 christos Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -215,7 +215,7 @@
            preq->preq_pid, preq->preq_lid);
 
        if (isvn) {
-               switch (preq->preq_optype) {
+               switch ((enum puffs_vn)preq->preq_optype) {
                case PUFFS_VN_LOOKUP:
                        puffsdump_lookup(preq);
                        break;
@@ -262,7 +262,7 @@
 {
 
        if (PUFFSOP_OPCLASS(preq->preq_opclass) == PUFFSOP_VN) {
-               switch (preq->preq_optype) {
+               switch ((enum puffs_vn)preq->preq_optype) {
                case PUFFS_VN_LOOKUP:
                        puffsdump_lookup_rv(preq);
                        break;



Home | Main Index | Thread Index | Old Index