Source-Changes-HG archive

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

[src/trunk]: src/bin/ls make it obvious to grep that we are checking ctime.



details:   https://anonhg.NetBSD.org/src/rev/160709202325
branches:  trunk
changeset: 753568:160709202325
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 02 15:09:12 2010 +0000

description:
make it obvious to grep that we are checking ctime.

diffstat:

 bin/ls/print.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 6a94794dc66f -r 160709202325 bin/ls/print.c
--- a/bin/ls/print.c    Fri Apr 02 14:11:18 2010 +0000
+++ b/bin/ls/print.c    Fri Apr 02 15:09:12 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.46 2010/04/01 22:23:27 christos Exp $      */
+/*     $NetBSD: print.c,v 1.47 2010/04/02 15:09:12 christos Exp $      */
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)print.c    8.5 (Berkeley) 7/28/94";
 #else
-__RCSID("$NetBSD: print.c,v 1.46 2010/04/01 22:23:27 christos Exp $");
+__RCSID("$NetBSD: print.c,v 1.47 2010/04/02 15:09:12 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -355,8 +355,7 @@
        int i;
        const char *longstring;
 
-       longstring = ctime(&ftime);
-       if (longstring == NULL) {
+       if ((longstring = ctime(&ftime)) == NULL) {
                           /* 012345678901234567890123 */
                longstring = "????????????????????????";
        }



Home | Main Index | Thread Index | Old Index