From owner-svn-src-head@FreeBSD.ORG Sun Nov 6 18:49:31 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 F37741065890; Sun, 6 Nov 2011 18:49:30 +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 E3B2D8FC0A; Sun, 6 Nov 2011 18:49:30 +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 pA6InUTV035992; Sun, 6 Nov 2011 18:49:30 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA6InUJB035990; Sun, 6 Nov 2011 18:49:30 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201111061849.pA6InUJB035990@svn.freebsd.org> From: Ed Schouten Date: Sun, 6 Nov 2011 18:49:30 +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: r227238 - head/usr.bin/expand 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 18:49:31 -0000 Author: ed Date: Sun Nov 6 18:49:30 2011 New Revision: 227238 URL: http://svn.freebsd.org/changeset/base/227238 Log: Mark global functions and/or variables in expand(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified: head/usr.bin/expand/expand.c Modified: head/usr.bin/expand/expand.c ============================================================================== --- head/usr.bin/expand/expand.c Sun Nov 6 18:49:23 2011 (r227237) +++ head/usr.bin/expand/expand.c Sun Nov 6 18:49:30 2011 (r227238) @@ -53,8 +53,8 @@ __FBSDID("$FreeBSD$"); /* * expand - expand tabs to equivalent spaces */ -int nstops; -int tabstops[100]; +static int nstops; +static int tabstops[100]; static void getstops(char *); static void usage(void);