diff options
author | deraadt <deraadt@openbsd.org> | 2013-11-13 04:50:21 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2013-11-13 04:50:21 +0000 |
commit | 8768ce3515acdcf36e84712dae8d65ebdde38d07 (patch) | |
tree | 7639e3fa99c01aa560ed3634ce3d7d040419ecf3 /usr.sbin/apmd | |
parent | Use DL_GETPOFFSET() to get partition offset, except where we (diff) | |
download | wireguard-openbsd-8768ce3515acdcf36e84712dae8d65ebdde38d07.tar.xz wireguard-openbsd-8768ce3515acdcf36e84712dae8d65ebdde38d07.zip |
protos, and please gcc warnings about operator precedence
ok guenther
Diffstat (limited to 'usr.sbin/apmd')
-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; |