summaryrefslogtreecommitdiff
path: root/sysutils/asapm/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/asapm/patches/patch-af')
-rw-r--r--sysutils/asapm/patches/patch-af4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/asapm/patches/patch-af b/sysutils/asapm/patches/patch-af
index 6fe3850a4a1..8f816971ec2 100644
--- a/sysutils/asapm/patches/patch-af
+++ b/sysutils/asapm/patches/patch-af
@@ -1,4 +1,4 @@
-$NetBSD: patch-af,v 1.2 2004/06/09 22:15:41 kivinen Exp $
+$NetBSD: patch-af,v 1.3 2004/06/09 22:22:09 kivinen Exp $
--- apm_read.c.orig 2001-11-23 23:07:19.000000000 +0200
+++ apm_read.c
@@ -102,7 +102,7 @@ $NetBSD: patch-af,v 1.2 2004/06/09 22:15:41 kivinen Exp $
+ }
+
+ if (state.ac_line_status != connected) {
-+ state.ac_line_status = connected ? AC_BATTERY : AC_ONLINE;
++ state.ac_line_status = connected ? AC_ONLINE : AC_BATTERY;
+ ++state.update;
+ if ( state.ac_line_status == AC_ONLINE )
+ state.flags |= CHANGE_AC_ON;