summaryrefslogtreecommitdiff
path: root/usr.sbin/apmd/apmsubr.c
diff options
context:
space:
mode:
authorNikolay Sturm <sturm@cvs.openbsd.org>2006-03-15 20:30:29 +0000
committerNikolay Sturm <sturm@cvs.openbsd.org>2006-03-15 20:30:29 +0000
commit5d566994237591142b6ec4faf4cc9550660081e2 (patch)
treedc251d380884474509d8af78e402a221df98d1f6 /usr.sbin/apmd/apmsubr.c
parent114010020db8185a708ae738108cf94e5781f763 (diff)
consistently use power *states* and performance *modes*
ok beck, mickey
Diffstat (limited to 'usr.sbin/apmd/apmsubr.c')
-rw-r--r--usr.sbin/apmd/apmsubr.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/usr.sbin/apmd/apmsubr.c b/usr.sbin/apmd/apmsubr.c
index fc0d3eb557f..5af4ab98546 100644
--- a/usr.sbin/apmd/apmsubr.c
+++ b/usr.sbin/apmd/apmsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmsubr.c,v 1.7 2006/01/28 17:08:14 sturm Exp $ */
+/* $OpenBSD: apmsubr.c,v 1.8 2006/03/15 20:30:28 sturm Exp $ */
/*
* Copyright (c) 1995,1996 John T. Kohl
@@ -72,20 +72,16 @@ ac_state(int state)
}
const char *
-perf_state(int state)
+perf_mode(int mode)
{
- switch (state) {
- case PERF_NONE:
- return "uninitialized";
- case PERF_LOW:
- return "low";
- case PERF_HIGH:
- return "high";
+ switch (mode) {
+ case PERF_MANUAL:
+ return "manual";
case PERF_AUTO:
return "auto";
case PERF_COOL:
return "cool running";
default:
- return "invalid performance status";
+ return "invalid";
}
}