Source-Changes-HG archive

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

[src/trunk]: src/sys/secmodel/extensions isroot should be bool...



details:   https://anonhg.NetBSD.org/src/rev/44b9d9ff37fd
branches:  trunk
changeset: 364570:44b9d9ff37fd
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 29 22:29:29 2022 +0000

description:
isroot should be bool...

diffstat:

 sys/secmodel/extensions/secmodel_extensions.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r e1030b14b8e2 -r 44b9d9ff37fd sys/secmodel/extensions/secmodel_extensions.c
--- a/sys/secmodel/extensions/secmodel_extensions.c     Tue Mar 29 22:10:42 2022 +0000
+++ b/sys/secmodel/extensions/secmodel_extensions.c     Tue Mar 29 22:29:29 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: secmodel_extensions.c,v 1.14 2022/03/28 19:08:43 rillig Exp $ */
+/* $NetBSD: secmodel_extensions.c,v 1.15 2022/03/29 22:29:29 christos Exp $ */
 /*-
  * Copyright (c) 2011 Elad Efrat <elad%NetBSD.org@localhost>
  * All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: secmodel_extensions.c,v 1.14 2022/03/28 19:08:43 rillig Exp $");
+__KERNEL_RCSID(0, "$NetBSD: secmodel_extensions.c,v 1.15 2022/03/29 22:29:29 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -534,7 +534,8 @@
 secmodel_extensions_vnode_cb(kauth_cred_t cred, kauth_action_t action,
     void *cookie, void *arg0, void *arg1, void *arg2, void *arg3)
 {
-       int error, isroot;
+       int error;
+       bool isroot;
        struct vattr va;
 
        if ((action & KAUTH_VNODE_ADD_LINK) == 0)



Home | Main Index | Thread Index | Old Index