From owner-svn-src-all@FreeBSD.ORG Sun Nov 6 19:01:36 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E046A1065787; Sun, 6 Nov 2011 19:01:36 +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 2F0468FC17; Sun, 6 Nov 2011 19:01:36 +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 pA6J1a8d036817; Sun, 6 Nov 2011 19:01:36 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA6J1ap5036815; Sun, 6 Nov 2011 19:01:36 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201111061901.pA6J1ap5036815@svn.freebsd.org> From: Ed Schouten Date: Sun, 6 Nov 2011 19:01:36 +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: r227250 - head/usr.sbin/boot0cfg X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 19:01:37 -0000 Author: ed Date: Sun Nov 6 19:01:35 2011 New Revision: 227250 URL: http://svn.freebsd.org/changeset/base/227250 Log: Mark global functions and/or variables in boot0cfg(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified: head/usr.sbin/boot0cfg/boot0cfg.c Modified: head/usr.sbin/boot0cfg/boot0cfg.c ============================================================================== --- head/usr.sbin/boot0cfg/boot0cfg.c Sun Nov 6 19:01:30 2011 (r227249) +++ head/usr.sbin/boot0cfg/boot0cfg.c Sun Nov 6 19:01:35 2011 (r227250) @@ -60,13 +60,13 @@ struct opt_offsets { int ticks; }; -struct opt_offsets b0_ofs[] = { +static struct opt_offsets b0_ofs[] = { { 0x0, 0x0, 0x0, 0x0 }, /* no boot block */ { 0x1b9, 0x1ba, 0x1bb, 0x1bc }, /* original block */ { 0x1b5, 0x1b6, 0x1b7, 0x1bc }, /* NT_SERIAL block */ }; -int b0_ver; /* boot block version set by boot0bs */ +static int b0_ver; /* boot block version set by boot0bs */ #define OFF_OPT (b0_ofs[b0_ver].opt) /* default boot option */ #define OFF_DRIVE (b0_ofs[b0_ver].drive) /* setdrv drive */ @@ -106,9 +106,9 @@ static int argtoi(const char *, int, int static int set_bell(u_int8_t *, int, int); static void usage(void); -unsigned vol_id[5]; /* 4 plus 1 for flag */ +static unsigned vol_id[5]; /* 4 plus 1 for flag */ -int v_flag; +static int v_flag; /* * Boot manager installation/configuration utility. */