summaryrefslogtreecommitdiff
path: root/chat/kmess/patches/patch-kmess_xautolock.cpp
blob: 707c4c4125a62cd445c2f908fb4fed2f47c60c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-kmess_xautolock.cpp,v 1.1 2014/09/24 16:28:40 jperkin Exp $

Avoid "error: call of overloaded <func> is ambiguous".

--- kmess/xautolock.cpp.orig	2005-07-13 14:47:59.000000000 +0000
+++ kmess/xautolock.cpp
@@ -78,7 +78,7 @@ void XAutoLock::checkIdle()
 
   now = time( 0 );
 
-  if ( abs( lastCheck_ - now ) > 120 )
+  if ( abs( (int)lastCheck_ - (int)now ) > 120 )
   {
     /*
       Whoah, two minutes since we were last called?  Something strange is happenning...