Source-Changes-HG archive

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

[src/trunk]: src/sys/dev "sc_format[0]." is better than "sc_format->" here.



details:   https://anonhg.NetBSD.org/src/rev/4f21b8b26c80
branches:  trunk
changeset: 825660:4f21b8b26c80
user:      isaki <isaki%NetBSD.org@localhost>
date:      Thu Jul 27 08:37:27 2017 +0000

description:
"sc_format[0]." is better than "sc_format->" here.

diffstat:

 sys/dev/audio.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r 7ca042da06ae -r 4f21b8b26c80 sys/dev/audio.c
--- a/sys/dev/audio.c   Thu Jul 27 08:28:18 2017 +0000
+++ b/sys/dev/audio.c   Thu Jul 27 08:37:27 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.370 2017/07/27 08:28:18 isaki Exp $        */
+/*     $NetBSD: audio.c,v 1.371 2017/07/27 08:37:27 isaki Exp $        */
 
 /*-
  * Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.370 2017/07/27 08:28:18 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.371 2017/07/27 08:37:27 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -4187,10 +4187,10 @@
        ai.play.pause         = false;
        ai.mode               = mode;
 
-       sc->sc_format->channels = sc->sc_channels;
-       sc->sc_format->precision = sc->sc_precision;
-       sc->sc_format->validbits = sc->sc_precision;
-       sc->sc_format->frequency[0] = sc->sc_frequency;
+       sc->sc_format[0].channels = sc->sc_channels;
+       sc->sc_format[0].precision = sc->sc_precision;
+       sc->sc_format[0].validbits = sc->sc_precision;
+       sc->sc_format[0].frequency[0] = sc->sc_frequency;
 
        auconv_delete_encodings(sc->sc_encodings);
        error = auconv_create_encodings(sc->sc_format, VAUDIO_NFORMATS,



Home | Main Index | Thread Index | Old Index