From owner-svn-src-head@FreeBSD.ORG Sun Nov 6 08:18:18 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 5FE9C1066EF5; Sun, 6 Nov 2011 08:18:18 +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 115D08FC0C; Sun, 6 Nov 2011 08:18:18 +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 pA68IHYr009556; Sun, 6 Nov 2011 08:18:17 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA68IHq8009554; Sun, 6 Nov 2011 08:18:17 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201111060818.pA68IHq8009554@svn.freebsd.org> From: Ed Schouten Date: Sun, 6 Nov 2011 08:18:17 +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: r227194 - head/usr.bin/units 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:18 -0000 Author: ed Date: Sun Nov 6 08:18:17 2011 New Revision: 227194 URL: http://svn.freebsd.org/changeset/base/227194 Log: Add missing static keywords to units(1) Modified: head/usr.bin/units/units.c Modified: head/usr.bin/units/units.c ============================================================================== --- head/usr.bin/units/units.c Sun Nov 6 08:18:11 2011 (r227193) +++ head/usr.bin/units/units.c Sun Nov 6 08:18:17 2011 (r227194) @@ -42,9 +42,9 @@ static const char rcsid[] = #define PRIMITIVECHAR '!' -const char *powerstring = "^"; +static const char *powerstring = "^"; -struct { +static struct { char *uname; char *uval; } unittable[MAXUNITS]; @@ -57,13 +57,13 @@ struct unittype { int quantity; }; -struct { +static struct { char *prefixname; char *prefixval; } prefixtable[MAXPREFIXES]; -char NULLUNIT[] = ""; +static char NULLUNIT[] = ""; #ifdef MSDOS #define SEPARATOR ";" @@ -71,8 +71,8 @@ char NULLUNIT[] = ""; #define SEPARATOR ":" #endif -int unitcount; -int prefixcount; +static int unitcount; +static int prefixcount; char *dupstr(const char *str); void readunits(const char *userfile);