summaryrefslogtreecommitdiff
path: root/net/icsi-finger/patches/patch-aj
blob: 92c17d37f8aa622a24a1da1efd25baccdfbe5e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-aj,v 1.1 2011/01/18 12:28:25 is Exp $

--- lib/packet.c.orig	1994-01-11 02:14:20.000000000 +0000
+++ lib/packet.c
@@ -218,7 +218,7 @@ print_packet (packet, stream)
   char *idle = idle_time_string (packet->idle_time, 1);
 #define DATE_OFFSET	4
 #define TIME_OFFSET	11
-  char *when = ctime (&packet->login_time);
+  char *when = ctime32 (&packet->login_time);
 #define WEEKS_TIME (7 * 24 * 60 * 60)
   int old_login = time(NULL) -  packet->login_time > WEEKS_TIME;
 
@@ -277,7 +277,7 @@ debug_packet (packet)
         what: \"%s\"\n\
 }", packet,
 	   packet->name, packet->real_name, packet->host,
-	   ctime (&(packet->login_time)), idle,
+	   ctime32 (&(packet->login_time)), idle,
 	   packet->ttyname, packet->ttyloc, packet->what);
   free (idle);
   fflush (stderr);