Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Paranoia: parenthesize macro operands.
details: https://anonhg.NetBSD.org/src/rev/dd890656823a
branches: trunk
changeset: 351775:dd890656823a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Feb 26 16:22:55 2017 +0000
description:
Paranoia: parenthesize macro operands.
Should be no functional change, based on how these macros are used in
this file.
diffstat:
sys/dev/audio.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (43 lines):
diff -r 99cb553c0fa6 -r dd890656823a sys/dev/audio.c
--- a/sys/dev/audio.c Sun Feb 26 15:44:15 2017 +0000
+++ b/sys/dev/audio.c Sun Feb 26 16:22:55 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.311 2017/02/24 16:53:24 nat Exp $ */
+/* $NetBSD: audio.c,v 1.312 2017/02/26 16:22:55 riastradh 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.311 2017/02/24 16:53:24 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.312 2017/02/26 16:22:55 riastradh Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -197,19 +197,19 @@
#define DPRINTFN(n,x)
#endif
-#define ROUNDSIZE(x) x &= -16 /* round to nice boundary */
-#define SPECIFIED(x) (x != ~0)
-#define SPECIFIED_CH(x) (x != (u_char)~0)
+#define ROUNDSIZE(x) (x) &= -16 /* round to nice boundary */
+#define SPECIFIED(x) ((x) != ~0)
+#define SPECIFIED_CH(x) ((x) != (u_char)~0)
/* #define AUDIO_PM_IDLE */
#ifdef AUDIO_PM_IDLE
int audio_idle_timeout = 30;
#endif
-#define HW_LOCK(x) if (x == SIMPLEQ_FIRST(&sc->sc_audiochan)->vc) \
+#define HW_LOCK(x) if ((x) == SIMPLEQ_FIRST(&sc->sc_audiochan)->vc) \
mutex_enter(sc->sc_intr_lock);
-#define HW_UNLOCK(x) if (x == SIMPLEQ_FIRST(&sc->sc_audiochan)->vc) \
+#define HW_UNLOCK(x) if ((x) == SIMPLEQ_FIRST(&sc->sc_audiochan)->vc) \
mutex_exit(sc->sc_intr_lock);
int audio_blk_ms = AUDIO_BLK_MS;
Home |
Main Index |
Thread Index |
Old Index