diff options
author | imp <imp@FreeBSD.org> | 1997-11-06 23:55:38 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-11-06 23:55:38 +0000 |
commit | e963b91faeef0696bfc2c5630d952d4347263a99 (patch) | |
tree | fe9f8bd34e870e84fc8510d40de71bd465a67595 /usr.sbin/apm | |
parent | 45a9d49a7f4c4a1503a3b55aae2ebdf2a83382ec (diff) | |
download | FreeBSD-src-e963b91faeef0696bfc2c5630d952d4347263a99.zip FreeBSD-src-e963b91faeef0696bfc2c5630d952d4347263a99.tar.gz |
Use warn rather than warnx to report errors opening the APM device.
Nit formatting fix
Diffstat (limited to 'usr.sbin/apm')
-rw-r--r-- | usr.sbin/apm/apm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c index 5c8b1dd..98e9852 100644 --- a/usr.sbin/apm/apm.c +++ b/usr.sbin/apm/apm.c @@ -15,7 +15,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: apm.c,v 1.10 1997/09/02 06:36:39 charnier Exp $"; #endif /* not lint */ #include <err.h> @@ -81,7 +81,7 @@ print_all_info(apm_info_t aip) if (aip->ai_batt_life == 255) printf("unknown"); else if (aip->ai_batt_life <= 100) - printf("%d%%", aip->ai_batt_life); + printf("%d%%", aip->ai_batt_life); else printf("invalid value (0x%x)", aip->ai_batt_life); printf("\n"); @@ -160,7 +160,7 @@ main(int argc, char *argv[]) finish_option: fd = open(APMDEV, O_RDWR); if (fd == -1) { - warnx("can't open %s", APMDEV); + warn("can't open %s", APMDEV); return 1; } if (sleep) |