summaryrefslogtreecommitdiff
path: root/comms/fidogate/patches/patch-ap
blob: 628326eeed84673305be816b1d30cea49ccce35b (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
$NetBSD: patch-ap,v 1.2 2004/08/23 15:18:02 tv Exp $

--- src/toss/ftntoss.c.orig	2003-02-16 10:39:02.000000000 -0500
+++ src/toss/ftntoss.c
@@ -1442,7 +1442,7 @@ int unpack_file(char *pkt_name)
     exp_sec = now_sec - max_sec;
     if(exp_sec < 0)
 	exp_sec = 0;
-    debug(4, "now=%ld max=%ld, old < %ld", now_sec, max_sec, exp_sec);
+    debug(4, "now=%ld max=%ld, old < %ld", (long) now_sec, (long) max_sec, (long) exp_sec);
     
     /* Open packet and read header */
     pkt_file = fopen(pkt_name, R_MODE);
@@ -1946,7 +1946,7 @@ int main(int argc, char **argv)
     
     if(pkts_in)
 	log("pkts processed: %ld, %ld Kbyte in %ld s, %.2f Kbyte/s",
-	    pkts_in, pkts_bytes/1024, toss_delta,
+	    pkts_in, pkts_bytes/1024, (long) toss_delta,
 	    (double)pkts_bytes/1024./toss_delta                      );
     
     if(msgs_in)
@@ -1954,7 +1954,7 @@ int main(int argc, char **argv)
 	log("msgs processed: %ld in, %ld out (%ld mail, %ld echo)",
 	    msgs_in, msgs_netmail+msgs_echomail, msgs_netmail, msgs_echomail);
 	log("msgs processed: %ld in %ld s, %.2f msgs/s",
-	    msgs_in, toss_delta, (double)msgs_in/toss_delta);
+	    msgs_in, (long) toss_delta, (double)msgs_in/toss_delta);
     }
     
     if(msgs_unknown || msgs_routed || msgs_insecure || msgs_empty)