diff options
Diffstat (limited to 'misc/kdeutils2/patches/patch-ai')
-rw-r--r-- | misc/kdeutils2/patches/patch-ai | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/misc/kdeutils2/patches/patch-ai b/misc/kdeutils2/patches/patch-ai index 35039d996f2..521a163361d 100644 --- a/misc/kdeutils2/patches/patch-ai +++ b/misc/kdeutils2/patches/patch-ai @@ -1,8 +1,8 @@ -$NetBSD: patch-ai,v 1.3 2001/12/03 15:37:15 skrll Exp $ +$NetBSD: patch-ai,v 1.4 2002/11/28 03:36:43 markd Exp $ ---- klaptopdaemon/portable.cpp.orig Sun Feb 18 15:31:14 2001 -+++ klaptopdaemon/portable.cpp -@@ -658,6 +658,238 @@ +--- klaptopdaemon/portable.cpp.orig Wed May 16 11:16:35 2001 ++++ klaptopdaemon/portable.cpp Mon Sep 16 14:45:41 2002 +@@ -658,6 +658,241 @@ { return(1); } @@ -41,6 +41,7 @@ $NetBSD: patch-ai,v 1.3 2001/12/03 15:37:15 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-ai,v 1.3 2001/12/03 15:37:15 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-ai,v 1.3 2001/12/03 15:37:15 skrll Exp $ + goto bad; + + struct apm_power_info info; ++ memset(&info, 0, sizeof(info)); + ret=ioctl(fd, APM_IOC_GETPOWER, &info); + ::close(fd); + |