Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dtv Pass 0xff instead of true to memset when setting...



details:   https://anonhg.NetBSD.org/src/rev/f02847c65904
branches:  trunk
changeset: 449154:f02847c65904
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Feb 24 12:05:49 2019 +0000

description:
Pass 0xff instead of true to memset when setting "all PIDs" mode in the PID filter

diffstat:

 sys/dev/dtv/dtv_demux.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0f2939168827 -r f02847c65904 sys/dev/dtv/dtv_demux.c
--- a/sys/dev/dtv/dtv_demux.c   Sun Feb 24 11:51:05 2019 +0000
+++ b/sys/dev/dtv/dtv_demux.c   Sun Feb 24 12:05:49 2019 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
         * 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;



Home | Main Index | Thread Index | Old Index