diff options
author | njl <njl@FreeBSD.org> | 2005-07-22 19:19:00 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-07-22 19:19:00 +0000 |
commit | feb635227b5d85a9fac6b1231c58366d8fcbb601 (patch) | |
tree | a351e71ce01ee11160e501de6f008b35752205bf /usr.sbin | |
parent | b78d4bbc65f79648f5a13b6a59aa1e8415d9acc6 (diff) | |
download | FreeBSD-src-feb635227b5d85a9fac6b1231c58366d8fcbb601.zip FreeBSD-src-feb635227b5d85a9fac6b1231c58366d8fcbb601.tar.gz |
Use the current BST/BIF ioctls, not the deprecated ones.
MFC after: 2 days
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/acpi/acpiconf/acpiconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/acpi/acpiconf/acpiconf.c b/usr.sbin/acpi/acpiconf/acpiconf.c index c475bea..286c40e 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) { |