Source-Changes-HG archive

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

[src/trunk]: src/bin/ls KNF - wrap long lines.



details:   https://anonhg.NetBSD.org/src/rev/7ff6c3612f5e
branches:  trunk
changeset: 556734:7ff6c3612f5e
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Dec 26 10:47:32 2003 +0000

description:
KNF - wrap long lines.

diffstat:

 bin/ls/ls.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r b80aa54bc59e -r 7ff6c3612f5e bin/ls/ls.c
--- a/bin/ls/ls.c       Fri Dec 26 08:24:33 2003 +0000
+++ b/bin/ls/ls.c       Fri Dec 26 10:47:32 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ls.c,v 1.53 2003/12/26 06:19:19 grant Exp $    */
+/*     $NetBSD: ls.c,v 1.54 2003/12/26 10:47:32 simonb Exp $   */
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)ls.c       8.7 (Berkeley) 8/5/94";
 #else
-__RCSID("$NetBSD: ls.c,v 1.53 2003/12/26 06:19:19 grant Exp $");
+__RCSID("$NetBSD: ls.c,v 1.54 2003/12/26 10:47:32 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -596,9 +596,10 @@
                (void)snprintf(buf, sizeof(buf), "%u", maxnlink);
                d.s_nlink = strlen(buf);
                if (f_humanize) {
-                       d.s_size = 4; /* min buffer length for humanize_number */
+                       d.s_size = 4; /* min buf length for humanize_number */
                } else {
-                       (void)snprintf(buf, sizeof(buf), "%llu", (long long)maxsize);
+                       (void)snprintf(buf, sizeof(buf), "%llu",
+                           (long long)maxsize);
                        d.s_size = strlen(buf);
                }
                d.s_user = maxuser;



Home | Main Index | Thread Index | Old Index