summaryrefslogtreecommitdiff
path: root/misc/kdeutils3/patches/patch-an
diff options
context:
space:
mode:
Diffstat (limited to 'misc/kdeutils3/patches/patch-an')
-rw-r--r--misc/kdeutils3/patches/patch-an11
1 files changed, 7 insertions, 4 deletions
diff --git a/misc/kdeutils3/patches/patch-an b/misc/kdeutils3/patches/patch-an
index e455dcbecad..b0e801b7bea 100644
--- a/misc/kdeutils3/patches/patch-an
+++ b/misc/kdeutils3/patches/patch-an
@@ -1,8 +1,8 @@
-$NetBSD: patch-an,v 1.1.1.1 2002/05/31 13:42:36 skrll Exp $
+$NetBSD: patch-an,v 1.2 2002/10/04 00:14:19 chris Exp $
---- klaptopdaemon/portable.cpp.orig Wed Jan 9 12:11:32 2002
-+++ klaptopdaemon/portable.cpp
-@@ -857,6 +857,238 @@
+--- klaptopdaemon/portable.cpp.orig Sat Jan 26 17:58:32 2002
++++ klaptopdaemon/portable.cpp Thu Oct 3 23:42:47 2002
+@@ -857,6 +857,241 @@
{
return(1);
}
@@ -41,6 +41,7 @@ $NetBSD: patch-an,v 1.1.1.1 2002/05/31 13:42:36 skrll Exp $
+ }
+
+ struct apm_power_info info;
++ memset(&info, 0, sizeof(info));
+ ret=ioctl(fd, APM_IOC_GETPOWER, &info);
+ ::close(fd);
+
@@ -62,6 +63,7 @@ $NetBSD: patch-an,v 1.1.1.1 2002/05/31 13:42:36 skrll Exp $
+ return 0;
+
+ struct apm_power_info info;
++ memset(&info, 0, sizeof(info));
+ ret=ioctl(fd, APM_IOC_GETPOWER, &info);
+ ::close(fd);
+
@@ -212,6 +214,7 @@ $NetBSD: patch-an,v 1.1.1.1 2002/05/31 13:42:36 skrll Exp $
+ goto bad;
+
+ struct apm_power_info info;
++ memset(&info, 0, sizeof(info));
+ ret=ioctl(fd, APM_IOC_GETPOWER, &info);
+ ::close(fd);
+