summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-11-06 23:55:38 +0000
committerWarner Losh <imp@FreeBSD.org>1997-11-06 23:55:38 +0000
commit2fd8f469e54c987f4615a49c7c3d1f02d325c2ac (patch)
tree54f8332ed5c4c357d138ac419a893606000342b4
parent59a7a5e09bf21152d4967dcc33c04dfb18176bc6 (diff)
Notes
-rw-r--r--usr.sbin/apm/apm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c
index 5c8b1ddd9f3e..98e98526b4d6 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)