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 & promotes to int already, so cl...



details:   https://anonhg.NetBSD.org/src/rev/93cbc0cf0c80
branches:  trunk
changeset: 994497:93cbc0cf0c80
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Nov 11 00:24:01 2018 +0000

description:
& promotes to int already, so clang warns about the hh modifier.
(and we use -Werror)

ok xtos

diffstat:

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

diffs (27 lines):

diff -r 8bc44afd841a -r 93cbc0cf0c80 usr.sbin/acpitools/acpidump/acpi.c
--- a/usr.sbin/acpitools/acpidump/acpi.c        Sun Nov 11 00:06:48 2018 +0000
+++ b/usr.sbin/acpitools/acpidump/acpi.c        Sun Nov 11 00:24:01 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi.c,v 1.40 2018/11/05 07:39:57 msaitoh Exp $ */
+/* $NetBSD: acpi.c,v 1.41 2018/11/11 00:24:01 maya Exp $ */
 
 /*-
  * Copyright (c) 1998 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: acpi.c,v 1.40 2018/11/05 07:39:57 msaitoh Exp $");
+__RCSID("$NetBSD: acpi.c,v 1.41 2018/11/11 00:24:01 maya Exp $");
 
 #include <sys/param.h>
 #include <sys/endian.h>
@@ -1236,7 +1236,7 @@
        degree = ((unsigned int)(bgrt->Status & ACPI_BGRT_ORIENTATION_OFFSET)
            >> 1) * 90;
        printf("\tDegree=%u\n", degree);
-       printf("\tDisplayed=%hhu\n", bgrt->Status & ACPI_BGRT_DISPLAYED);
+       printf("\tDisplayed=%u\n", bgrt->Status & ACPI_BGRT_DISPLAYED);
        printf("\tImage Type=");
        switch (bgrt->ImageType) {
        case 0:



Home | Main Index | Thread Index | Old Index