From e963b91faeef0696bfc2c5630d952d4347263a99 Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 6 Nov 1997 23:55:38 +0000 Subject: Use warn rather than warnx to report errors opening the APM device. Nit formatting fix --- usr.sbin/apm/apm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/apm') 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 @@ -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) -- cgit v1.1