From 5d566994237591142b6ec4faf4cc9550660081e2 Mon Sep 17 00:00:00 2001 From: Nikolay Sturm Date: Wed, 15 Mar 2006 20:30:29 +0000 Subject: consistently use power *states* and performance *modes* ok beck, mickey --- usr.sbin/apmd/apmsubr.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'usr.sbin/apmd/apmsubr.c') 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"; } } -- cgit v1.2.3