summaryrefslogtreecommitdiff
path: root/comms/fidogate/patches/patch-ao
blob: 565d869bd07aa8412f6a1aba58a3f7ad0cbb78f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-ao,v 1.1 2001/03/19 13:23:36 dmcmahill Exp $

alpha fixes...

--- src/toss/ftnexpire.c.orig	Fri Nov 17 16:18:08 2000
+++ src/toss/ftnexpire.c	Mon Mar 19 08:12:29 2001
@@ -113,5 +113,5 @@
 	exp_sec = 0;
     debug(4, "expire: now=%ld max=%ld, expire < %ld",
-	  now_sec, max_sec, exp_sec                   );
+	  (long) now_sec, (long) max_sec, (long) exp_sec                   );
 
     /* Open old history for reading */
@@ -223,5 +223,5 @@
     expired = t < exp_sec;
     debug(7, "msgid=%s  time=%ld  expired=%s",
-	  msgid, t, expired ? "YES" : "NO"     );
+	  msgid,(long) t, expired ? "YES" : "NO"     );
 
     /* Write if not expired */
@@ -236,5 +236,5 @@
 	
 	/* Write MSGID line to history text file */
-	ret = fprintf(hi_n, "%s\t%ld\n", msgid, t);
+	ret = fprintf(hi_n, "%s\t%ld\n", msgid, (long) t);
 	if (ret == ERROR || fflush(hi_n) == ERROR)
 	{
@@ -391,5 +391,5 @@
     log("ids processed: %ld total, %ld expired in %ld s, %.2f ids/s",
 	n_processed, n_expired,
-	expire_delta, (double)n_processed/expire_delta);
+	(long) expire_delta, (double)n_processed/expire_delta);
     
     unlock_program(DEFAULT_LOCK_HISTORY);