Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/last Fix botch in previous - include the day of the ...



details:   https://anonhg.NetBSD.org/src/rev/e3268d789a9f
branches:  trunk
changeset: 494052:e3268d789a9f
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Jun 30 06:19:58 2000 +0000

description:
Fix botch in previous - include the day of the month in the output!
Noticed by Geoff Wing.

diffstat:

 usr.bin/last/last.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 96d4f6c70d1b -r e3268d789a9f usr.bin/last/last.c
--- a/usr.bin/last/last.c       Fri Jun 30 04:04:09 2000 +0000
+++ b/usr.bin/last/last.c       Fri Jun 30 06:19:58 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: last.c,v 1.14 2000/06/25 13:44:43 simonb Exp $ */
+/*     $NetBSD: last.c,v 1.15 2000/06/30 06:19:58 simonb Exp $ */
 
 /*
  * Copyright (c) 1987, 1993, 1994
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)last.c     8.2 (Berkeley) 4/2/94";
 #endif
-__RCSID("$NetBSD: last.c,v 1.14 2000/06/25 13:44:43 simonb Exp $");
+__RCSID("$NetBSD: last.c,v 1.15 2000/06/30 06:19:58 simonb Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -66,8 +66,8 @@
 #define        YES     1                       /* true/yes */
 
 #define        TBUFLEN 30                      /* length of time string buffer */
-#define        TFMT    "%a %b %R"              /* strftime format string */
-#define        LTFMT   "%a %b %Y %T"           /* strftime long format string */
+#define        TFMT    "%a %b %d %R"           /* strftime format string */
+#define        LTFMT   "%a %b %d %Y %T"        /* strftime long format string */
 #define        TFMTS   "%R"                    /* strftime format string - time only */
 #define        LTFMTS  "%T"                    /* strftime long format string - " */
 



Home | Main Index | Thread Index | Old Index