Module Name: src
Committed By: jmcneill
Date: Sun Feb 24 12:05:49 UTC 2019
Modified Files:
src/sys/dev/dtv: dtv_demux.c
Log Message:
Pass 0xff instead of true to memset when setting "all PIDs" mode in the PID
filter
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/dtv/dtv_demux.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/dtv/dtv_demux.c
diff -u src/sys/dev/dtv/dtv_demux.c:1.9 src/sys/dev/dtv/dtv_demux.c:1.10
--- src/sys/dev/dtv/dtv_demux.c:1.9 Mon Sep 3 16:29:30 2018
+++ src/sys/dev/dtv/dtv_demux.c Sun Feb 24 12:05:49 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: dtv_demux.c,v 1.9 2018/09/03 16:29:30 riastradh Exp $ */
+/* $NetBSD: dtv_demux.c,v 1.10 2019/02/24 12:05:49 jmcneill Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <[email protected]>
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dtv_demux.c,v 1.9 2018/09/03 16:29:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dtv_demux.c,v 1.10 2019/02/24 12:05:49 jmcneill Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -279,7 +279,7 @@ dtv_demux_set_pidfilter(struct dtv_demux
* PID.
*/
if (pid == 0x2000) {
- memset(sc->sc_ts.ts_pidfilter, onoff,
+ memset(sc->sc_ts.ts_pidfilter, onoff ? 0xff : 0,
sizeof(sc->sc_ts.ts_pidfilter));
} else {
sc->sc_ts.ts_pidfilter[pid] = onoff;