pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/xmailwatcher Fix time_t vs long. Fix build with n...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/89cf8ae6288d
branches:  trunk
changeset: 547733:89cf8ae6288d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Sep 30 14:13:11 2008 +0000

description:
Fix time_t vs long. Fix build with newer GCC.

diffstat:

 mail/xmailwatcher/distinfo         |   3 ++-
 mail/xmailwatcher/patches/patch-ab |  36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 1 deletions(-)

diffs (52 lines):

diff -r 70dd151fe309 -r 89cf8ae6288d mail/xmailwatcher/distinfo
--- a/mail/xmailwatcher/distinfo        Tue Sep 30 14:01:37 2008 +0000
+++ b/mail/xmailwatcher/distinfo        Tue Sep 30 14:13:11 2008 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 09:59:30 agc Exp $
+$NetBSD: distinfo,v 1.3 2008/09/30 14:13:11 joerg Exp $
 
 SHA1 (xmailwatcher.tar.gz) = eed0c1b39a0877471ab4a862a49f1fd8b5bfacfc
 RMD160 (xmailwatcher.tar.gz) = acdd522889330b998f313274cd3f6405dceee1ae
 Size (xmailwatcher.tar.gz) = 15393 bytes
 SHA1 (patch-aa) = f9af02cab5c4b3244e1a5ac346b8fff123fcf441
+SHA1 (patch-ab) = d06c810dd30f476c81dc05eda92bb822dd9fc742
diff -r 70dd151fe309 -r 89cf8ae6288d mail/xmailwatcher/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/xmailwatcher/patches/patch-ab        Tue Sep 30 14:13:11 2008 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-ab,v 1.1 2008/09/30 14:13:11 joerg Exp $
+
+--- xmailwatcher.c.orig        2008-09-30 16:09:35.000000000 +0200
++++ xmailwatcher.c
+@@ -47,6 +47,7 @@ purpose.  It is provided "as is" without
+ #define BUFFER_DEFAULT 32000
+ 
+ #include <stdio.h>
++#include <stdlib.h>
+ 
+ typedef struct _Resources {
+       int     pollInterval;
+@@ -149,7 +150,7 @@ static XtConvertArgRec screenConvertArg[
+ void timedRescan();
+ void listEvent();
+ void iconEvent();
+-void iconCallback();
++static void iconCallback();
+ 
+ static int mapped;
+ 
+@@ -361,12 +362,11 @@ XtPointer client_data, call_data;
+       }
+ }
+ 
+-static void setTitle(time, have)
+-long time, have;
++static void setTitle(time_t time, long have)
+ {     char titleBuffer[80];
+       Arg args[4];
+       int n;
+-      static int lastTime;
++      static time_t lastTime;
+ 
+       if (time == lastTime) return;
+ 



Home | Main Index | Thread Index | Old Index