Module Name:    src
Committed By:   christos
Date:           Tue Dec  2 22:19:19 UTC 2014

Modified Files:
        src/usr.bin/w: w.c

Log Message:
if doing uptime, don't bother resolving names.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/usr.bin/w/w.c

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

Modified files:

Index: src/usr.bin/w/w.c
diff -u src/usr.bin/w/w.c:1.79 src/usr.bin/w/w.c:1.80
--- src/usr.bin/w/w.c:1.79	Wed Feb 26 19:49:46 2014
+++ src/usr.bin/w/w.c	Tue Dec  2 17:19:19 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: w.c,v 1.79 2014/02/27 00:49:46 joerg Exp $	*/
+/*	$NetBSD: w.c,v 1.80 2014/12/02 22:19:19 christos Exp $	*/
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #if 0
 static char sccsid[] = "@(#)w.c	8.6 (Berkeley) 6/30/94";
 #else
-__RCSID("$NetBSD: w.c,v 1.79 2014/02/27 00:49:46 joerg Exp $");
+__RCSID("$NetBSD: w.c,v 1.80 2014/12/02 22:19:19 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -156,6 +156,7 @@ main(int argc, char **argv)
 	if (*progname == 'u') {
 		wcmd = 0;
 		options = "";
+		nflag = 1;
 	} else {
 		wcmd = 1;
 		options = "hiM:N:nw";

Reply via email to