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/187dd782b31c
branches:  trunk
changeset: 445734:187dd782b31c
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 0cb5c9ad6928 -r 187dd782b31c 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