Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/audio Don't use a confusing GCC extension. NFC
details: https://anonhg.NetBSD.org/src/rev/aea814fc67f4
branches: trunk
changeset: 998999:aea814fc67f4
user: maya <maya%NetBSD.org@localhost>
date: Sat May 11 03:26:43 2019 +0000
description:
Don't use a confusing GCC extension. NFC
diffstat:
sys/dev/audio/audio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 90ff1d9e8ef1 -r aea814fc67f4 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c Sat May 11 02:40:31 2019 +0000
+++ b/sys/dev/audio/audio.c Sat May 11 03:26:43 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.2 2019/05/08 13:40:17 isaki Exp $ */
+/* $NetBSD: audio.c,v 1.3 2019/05/11 03:26:43 maya Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -149,7 +149,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.2 2019/05/08 13:40:17 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.3 2019/05/11 03:26:43 maya Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -7214,7 +7214,7 @@
* XXX hiwat/lowat is a playback-only parameter. What should I
* return for a record-only descriptor?
*/
- track = ptrack ?: rtrack;
+ track = ptrack ? ptrack : rtrack;
if (track) {
ai->blocksize = track->usrbuf_blksize;
ai->hiwat = track->usrbuf_usedhigh / track->usrbuf_blksize;
Home |
Main Index |
Thread Index |
Old Index