diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-13 04:50:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-13 04:50:22 +0000 |
commit | 7f71227310acc41883ac227ec15886adc4910f27 (patch) | |
tree | 99e6f2617fb1a82123b1e82358d0cbf1ddd8a99f /usr.sbin/apmd/apmd.c | |
parent | a7e033c6597a98664888717d727b131f7668f53e (diff) |
protos, and please gcc warnings about operator precedence
ok guenther
Diffstat (limited to 'usr.sbin/apmd/apmd.c')
-rw-r--r-- | usr.sbin/apmd/apmd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c index e225c17e896..98dac884414 100644 --- a/usr.sbin/apmd/apmd.c +++ b/usr.sbin/apmd/apmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apmd.c,v 1.62 2013/08/22 04:43:41 guenther Exp $ */ +/* $OpenBSD: apmd.c,v 1.63 2013/11/13 04:50:21 deraadt Exp $ */ /* * Copyright (c) 1995, 1996 John T. Kohl @@ -84,6 +84,8 @@ void setperf(int new_perf); void sigexit(int signo); void do_etc_file(const char *file); void sockunlink(void); +void error(const char *fmt, const char *arg); +void set_driver_messages(int fd, int mode); /* ARGSUSED */ void @@ -324,7 +326,7 @@ perf_status(struct apm_power_info *pinfo, int ncpu) * power and have a battery life greater than 15%, or if * the battery is absent */ - if (pinfo->ac_state == APM_AC_ON && pinfo->battery_life > 15 || + if ((pinfo->ac_state == APM_AC_ON && pinfo->battery_life > 15) || pinfo->battery_state == APM_BATTERY_ABSENT) forcehi = 1; break; |