From owner-svn-src-head@FreeBSD.ORG Sun Oct 28 19:38:42 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B5FE1F7A; Sun, 28 Oct 2012 19:38:42 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9BA2D8FC0A; Sun, 28 Oct 2012 19:38:42 +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 q9SJcg7Z084210; Sun, 28 Oct 2012 19:38:42 GMT (envelope-from trasz@svn.freebsd.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9SJcgD6084208; Sun, 28 Oct 2012 19:38:42 GMT (envelope-from trasz@svn.freebsd.org) Message-Id: <201210281938.q9SJcgD6084208@svn.freebsd.org> From: Edward Tomasz Napierala Date: Sun, 28 Oct 2012 19:38:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242265 - head/sbin/tunefs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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, 28 Oct 2012 19:38:42 -0000 Author: trasz Date: Sun Oct 28 19:38:42 2012 New Revision: 242265 URL: http://svn.freebsd.org/changeset/base/242265 Log: Declare functions as static and move global variables to the top; no functional changes. Modified: head/sbin/tunefs/tunefs.c Modified: head/sbin/tunefs/tunefs.c ============================================================================== --- head/sbin/tunefs/tunefs.c Sun Oct 28 19:22:18 2012 (r242264) +++ head/sbin/tunefs/tunefs.c Sun Oct 28 19:38:42 2012 (r242265) @@ -70,14 +70,16 @@ __FBSDID("$FreeBSD$"); /* the optimization warning string template */ #define OPTWARN "should optimize for %s with minfree %s %d%%" +static int blocks; +static char clrbuf[MAXBSIZE]; static struct uufsd disk; #define sblock disk.d_fs -void usage(void); -void printfs(void); -int journal_alloc(int64_t size); -void journal_clear(void); -void sbdirty(void); +static void usage(void); +static void printfs(void); +static int journal_alloc(int64_t size); +static void journal_clear(void); +static void sbdirty(void); int main(int argc, char *argv[]) @@ -545,16 +547,13 @@ err: err(12, "%s", special); } -void +static void sbdirty(void) { disk.d_fs.fs_flags |= FS_UNCLEAN | FS_NEEDSFSCK; disk.d_fs.fs_clean = 0; } -static int blocks; -static char clrbuf[MAXBSIZE]; - static ufs2_daddr_t journal_balloc(void) { @@ -880,7 +879,7 @@ indir_fill(ufs2_daddr_t blk, int level, /* * Clear the flag bits so the journal can be removed. */ -void +static void journal_clear(void) { struct ufs1_dinode *dp1; @@ -911,7 +910,7 @@ journal_clear(void) } } -int +static int journal_alloc(int64_t size) { struct ufs1_dinode *dp1; @@ -1060,7 +1059,7 @@ out: return (-1); } -void +static void usage(void) { fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n", @@ -1073,7 +1072,7 @@ usage(void) exit(2); } -void +static void printfs(void) { warnx("POSIX.1e ACLs: (-a) %s",