From d551ef2b7241a7af2df9c7c4ab3d4b083de1bf5c Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Fri, 22 Jul 2005 19:19:00 +0000 Subject: [PATCH] Use the current BST/BIF ioctls, not the deprecated ones. MFC after: 2 days --- usr.sbin/acpi/acpiconf/acpiconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/acpi/acpiconf/acpiconf.c b/usr.sbin/acpi/acpiconf/acpiconf.c index c475bea8deac..286c40ee15ad 100644 --- a/usr.sbin/acpi/acpiconf/acpiconf.c +++ b/usr.sbin/acpi/acpiconf/acpiconf.c @@ -96,7 +96,7 @@ acpi_battinfo(int num) err(EX_USAGE, "invalid battery %d", num); battio.unit = num; - if (ioctl(acpifd, ACPIIO_CMBAT_GET_BIF, &battio) == -1) + if (ioctl(acpifd, ACPIIO_BATT_GET_BIF, &battio) == -1) err(EX_IOERR, "get battery info (%d) failed", num); printf("Battery %d information\n", num); if (battio.bif.units == 0) @@ -129,7 +129,7 @@ acpi_battinfo(int num) printf("OEM info:\t\t%s\n", battio.bif.oeminfo); battio.unit = num; - if (ioctl(acpifd, ACPIIO_CMBAT_GET_BST, &battio) == -1) + if (ioctl(acpifd, ACPIIO_BATT_GET_BST, &battio) == -1) err(EX_IOERR, "get battery info (%d) failed", num); if (battio.bst.state != ACPI_BATT_STAT_NOT_PRESENT) {