summaryrefslogtreecommitdiff
path: root/irc/icbirc/files/patch-icbirc.c
blob: 2e4a9d19882c060b52b1b91c13303ad10577b828 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$FreeBSD$

--- icbirc.c.orig	Wed Aug 20 23:55:59 2003
+++ icbirc.c	Sat Feb 14 23:09:01 2004
@@ -318,12 +318,12 @@
 done:
 	if (server_fd >= 0)
 		close(server_fd);
-	printf("(%u seconds, %lu:%lu bytes)\n",
-	    time(NULL) - t, bytes_out, bytes_in);
+	printf("(%lu seconds, %lu:%lu bytes)\n",
+	    (long)time(NULL) - t, bytes_out, bytes_in);
 	if (terminate_client)
 		irc_send_notice(client_fd, "Closing connection "
-		    "(%u seconds, %lu:%lu bytes)",
-		    time(NULL) - t, bytes_out, bytes_in);
+		    "(%lu seconds, %lu:%lu bytes)",
+		    (long)time(NULL) - t, bytes_out, bytes_in);
 }
 
 int