Tue Sep 30 14:13:11 2008 UTC ()
Fix time_t vs long. Fix build with newer GCC.
(joerg)
diff -r1.2 -r1.3 pkgsrc/mail/xmailwatcher/distinfo
diff -r0 -r1.1 pkgsrc/mail/xmailwatcher/patches/patch-ab
--- pkgsrc/mail/xmailwatcher/distinfo 2005/02/24 09:59:30 1.2
+++ pkgsrc/mail/xmailwatcher/distinfo 2008/09/30 14:13:11 1.3
| @@ -1,6 +1,7 @@ | | | @@ -1,6 +1,7 @@ |
1 | $NetBSD: distinfo,v 1.2 2005/02/24 09:59:30 agc Exp $ | | 1 | $NetBSD: distinfo,v 1.3 2008/09/30 14:13:11 joerg Exp $ |
2 | | | 2 | |
3 | SHA1 (xmailwatcher.tar.gz) = eed0c1b39a0877471ab4a862a49f1fd8b5bfacfc | | 3 | SHA1 (xmailwatcher.tar.gz) = eed0c1b39a0877471ab4a862a49f1fd8b5bfacfc |
4 | RMD160 (xmailwatcher.tar.gz) = acdd522889330b998f313274cd3f6405dceee1ae | | 4 | RMD160 (xmailwatcher.tar.gz) = acdd522889330b998f313274cd3f6405dceee1ae |
5 | Size (xmailwatcher.tar.gz) = 15393 bytes | | 5 | Size (xmailwatcher.tar.gz) = 15393 bytes |
6 | SHA1 (patch-aa) = f9af02cab5c4b3244e1a5ac346b8fff123fcf441 | | 6 | SHA1 (patch-aa) = f9af02cab5c4b3244e1a5ac346b8fff123fcf441 |
| | | 7 | SHA1 (patch-ab) = d06c810dd30f476c81dc05eda92bb822dd9fc742 |
$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;