Module Name:    src
Committed By:   christos
Date:           Fri Apr  2 15:09:12 UTC 2010

Modified Files:
        src/bin/ls: print.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/bin/ls/print.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/ls/print.c
diff -u src/bin/ls/print.c:1.46 src/bin/ls/print.c:1.47
--- src/bin/ls/print.c:1.46	Thu Apr  1 18:23:27 2010
+++ src/bin/ls/print.c	Fri Apr  2 11:09:12 2010
@@ -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 = "????????????????????????";
 	}

Reply via email to