Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/w Fix whitespace usage.



details:   https://anonhg.NetBSD.org/src/rev/ddb6959efb3c
branches:  trunk
changeset: 538464:ddb6959efb3c
user:      enami <enami%NetBSD.org@localhost>
date:      Mon Oct 21 10:18:23 2002 +0000

description:
Fix whitespace usage.

diffstat:

 usr.bin/w/pr_time.c |   6 +++---
 usr.bin/w/w.c       |  16 ++++++++--------
 2 files changed, 11 insertions(+), 11 deletions(-)

diffs (92 lines):

diff -r 4354f7ccde38 -r ddb6959efb3c usr.bin/w/pr_time.c
--- a/usr.bin/w/pr_time.c       Mon Oct 21 10:10:26 2002 +0000
+++ b/usr.bin/w/pr_time.c       Mon Oct 21 10:18:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pr_time.c,v 1.12 2001/01/05 04:59:21 mjl Exp $ */
+/*     $NetBSD: pr_time.c,v 1.13 2002/10/21 10:18:23 enami Exp $       */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)pr_time.c  8.2 (Berkeley) 4/4/94";
 #else
-__RCSID("$NetBSD: pr_time.c,v 1.12 2001/01/05 04:59:21 mjl Exp $");
+__RCSID("$NetBSD: pr_time.c,v 1.13 2002/10/21 10:18:23 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -54,7 +54,7 @@
 
 /*
  * pr_attime --
- *     Print the time since the user logged in. 
+ *     Print the time since the user logged in.
  *
  *     Note: SCCS forces the bizarre string manipulation, things like
  *     %I% get replaced in the source code.
diff -r 4354f7ccde38 -r ddb6959efb3c usr.bin/w/w.c
--- a/usr.bin/w/w.c     Mon Oct 21 10:10:26 2002 +0000
+++ b/usr.bin/w/w.c     Mon Oct 21 10:18:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: w.c,v 1.53 2002/10/21 10:10:26 enami Exp $     */
+/*     $NetBSD: w.c,v 1.54 2002/10/21 10:18:23 enami Exp $     */
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)w.c        8.6 (Berkeley) 6/30/94";
 #else
-__RCSID("$NetBSD: w.c,v 1.53 2002/10/21 10:10:26 enami Exp $");
+__RCSID("$NetBSD: w.c,v 1.54 2002/10/21 10:18:23 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -326,8 +326,8 @@
        argwidth -= sizeof("WHAT\n") - 1 /* NUL */;
 
        if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) == -1 &&
-            ioctl(STDERR_FILENO, TIOCGWINSZ, &ws) == -1 &&
-            ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1) || ws.ws_col == 0)
+           ioctl(STDERR_FILENO, TIOCGWINSZ, &ws) == -1 &&
+           ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1) || ws.ws_col == 0)
                ttywidth = 79;
        else
                ttywidth = ws.ws_col - 1;
@@ -337,7 +337,7 @@
        /* sort by idle time */
        if (sortidle && ehead != NULL) {
                struct entry *from = ehead, *save;
-               
+
                ehead = NULL;
                while (from != NULL) {
                        for (nextp = &ehead;
@@ -353,7 +353,7 @@
 #if defined(SUPPORT_UTMP) && defined(SUPPORT_UTMPX)
        else if (ehead != NULL) {
                struct entry *from = ehead, *save;
-               
+
                ehead = NULL;
                while (from != NULL) {
                        for (nextp = &ehead;
@@ -367,7 +367,7 @@
                }
        }
 #endif
-                       
+
        if (!nflag) {
                int     rv;
 
@@ -565,7 +565,7 @@
         */
        if (strncmp(ep->line, "ftp", 3) == 0) {
                ep->ftpd_pid = strtol(ep->line + 3, NULL, 10);
-               
+
                return;
        }
 #endif /* SUPPORT_FTPD_UTMP */



Home | Main Index | Thread Index | Old Index