Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/audio sysctl "multiuser" type is CTLTYPE_BOOL, so us...



details:   https://anonhg.NetBSD.org/src/rev/ff05ffb90652
branches:  trunk
changeset: 451271:ff05ffb90652
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Mon May 13 07:53:56 2019 +0000

description:
sysctl "multiuser" type is CTLTYPE_BOOL, so use bool instead of int.

diffstat:

 sys/dev/audio/audio.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 0fb045a61f23 -r ff05ffb90652 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Mon May 13 07:48:42 2019 +0000
+++ b/sys/dev/audio/audio.c     Mon May 13 07:53:56 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.5 2019/05/13 04:11:04 nakayama Exp $       */
+/*     $NetBSD: audio.c,v 1.6 2019/05/13 07:53:56 nakayama Exp $       */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -149,7 +149,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.5 2019/05/13 04:11:04 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.6 2019/05/13 07:53:56 nakayama Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -7511,7 +7511,8 @@
 {
        struct sysctlnode node;
        struct audio_softc *sc;
-       int t, error;
+       bool t;
+       int error;
 
        node = *rnode;
        sc = node.sysctl_data;



Home | Main Index | Thread Index | Old Index