From owner-svn-src-head@FreeBSD.ORG Sun Nov 6 08:18:48 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37C9C1065680; Sun, 6 Nov 2011 08:18:48 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 278E58FC17; Sun, 6 Nov 2011 08:18:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA68ImCH009754; Sun, 6 Nov 2011 08:18:48 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA68ImQP009752; Sun, 6 Nov 2011 08:18:48 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201111060818.pA68ImQP009752@svn.freebsd.org> From: Ed Schouten Date: Sun, 6 Nov 2011 08:18:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227199 - head/usr.bin/w X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 08:18:48 -0000 Author: ed Date: Sun Nov 6 08:18:47 2011 New Revision: 227199 URL: http://svn.freebsd.org/changeset/base/227199 Log: Add missing static keywords to w(1) Modified: head/usr.bin/w/w.c Modified: head/usr.bin/w/w.c ============================================================================== --- head/usr.bin/w/w.c Sun Nov 6 08:18:42 2011 (r227198) +++ head/usr.bin/w/w.c Sun Nov 6 08:18:47 2011 (r227199) @@ -85,25 +85,24 @@ static const char sccsid[] = "@(#)w.c 8. #include "extern.h" -struct timeval boottime; -struct utmpx *utmp; -struct winsize ws; -kvm_t *kd; -time_t now; /* the current time of day */ -int ttywidth; /* width of tty */ -int argwidth; /* width of tty */ -int header = 1; /* true if -h flag: don't print heading */ -int nflag; /* true if -n flag: don't convert addrs */ -int dflag; /* true if -d flag: output debug info */ -int sortidle; /* sort by idle time */ +static struct utmpx *utmp; +static struct winsize ws; +static kvm_t *kd; +static time_t now; /* the current time of day */ +static int ttywidth; /* width of tty */ +static int argwidth; /* width of tty */ +static int header = 1; /* true if -h flag: don't print heading */ +static int nflag; /* true if -n flag: don't convert addrs */ +static int dflag; /* true if -d flag: output debug info */ +static int sortidle; /* sort by idle time */ int use_ampm; /* use AM/PM time */ -int use_comma; /* use comma as floats separator */ -char **sel_users; /* login array of particular users selected */ +static int use_comma; /* use comma as floats separator */ +static char **sel_users; /* login array of particular users selected */ /* * One of these per active utmp entry. */ -struct entry { +static struct entry { struct entry *next; struct utmpx utmp; dev_t tdev; /* dev_t of terminal */