Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/acpitools/acpidump PR/50741: David Binderman: Fix a...



details:   https://anonhg.NetBSD.org/src/rev/c4b7dee71d45
branches:  trunk
changeset: 343399:c4b7dee71d45
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 01 17:46:22 2016 +0000

description:
PR/50741: David Binderman: Fix assignment in assert.

diffstat:

 usr.sbin/acpitools/acpidump/acpi.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r fffc89b5f479 -r c4b7dee71d45 usr.sbin/acpitools/acpidump/acpi.c
--- a/usr.sbin/acpitools/acpidump/acpi.c        Mon Feb 01 17:44:19 2016 +0000
+++ b/usr.sbin/acpitools/acpidump/acpi.c        Mon Feb 01 17:46:22 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi.c,v 1.13 2015/08/19 07:37:17 christos Exp $ */
+/* $NetBSD: acpi.c,v 1.14 2016/02/01 17:46:22 christos Exp $ */
 
 /*-
  * Copyright (c) 1998 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: acpi.c,v 1.13 2015/08/19 07:37:17 christos Exp $");
+__RCSID("$NetBSD: acpi.c,v 1.14 2016/02/01 17:46:22 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/endian.h>
@@ -1969,7 +1969,7 @@
                        addr = le64toh(xsdt->TableOffsetEntry[i]);
                        break;
                default:
-                       assert((addr = 0));
+                       assert((addr == 0));
                }
                printf("0x%08lx", addr);
        }
@@ -2235,7 +2235,7 @@
                        addr = le64toh(xsdt->TableOffsetEntry[i]);
                        break;
                default:
-                       assert((addr = 0));
+                       assert((addr == 0));
                }
 
                sdp = (ACPI_TABLE_HEADER *)acpi_map_sdt(addr);
@@ -2471,7 +2471,7 @@
                        addr = le64toh(xsdt->TableOffsetEntry[i]);
                        break;
                default:
-                       assert((addr = 0));
+                       assert((addr == 0));
                }
                sdt = (ACPI_TABLE_HEADER *)acpi_map_sdt(addr);
                if (last != NULL) {



Home | Main Index | Thread Index | Old Index