From owner-svn-src-all@FreeBSD.ORG Sun Nov 6 19:02:20 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 78C4510657F4; Sun, 6 Nov 2011 19:02:20 +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 6863C8FC18; Sun, 6 Nov 2011 19:02:20 +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 pA6J2KnY037054; Sun, 6 Nov 2011 19:02:20 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA6J2KtN037052; Sun, 6 Nov 2011 19:02:20 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201111061902.pA6J2KtN037052@svn.freebsd.org> From: Ed Schouten Date: Sun, 6 Nov 2011 19:02:20 +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: r227256 - head/usr.sbin/moused 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:02:20 -0000 Author: ed Date: Sun Nov 6 19:02:20 2011 New Revision: 227256 URL: http://svn.freebsd.org/changeset/base/227256 Log: Mark global functions and/or variables in moused(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified: head/usr.sbin/moused/moused.c Modified: head/usr.sbin/moused/moused.c ============================================================================== --- head/usr.sbin/moused/moused.c Sun Nov 6 19:02:13 2011 (r227255) +++ head/usr.sbin/moused/moused.c Sun Nov 6 19:02:20 2011 (r227256) @@ -174,14 +174,14 @@ typedef struct { /* global variables */ -int debug = 0; -int nodaemon = FALSE; -int background = FALSE; -int paused = FALSE; -int identify = ID_NONE; -int extioctl = FALSE; -const char *pidfile = "/var/run/moused.pid"; -struct pidfh *pfh; +static int debug = 0; +static int nodaemon = FALSE; +static int background = FALSE; +static int paused = FALSE; +static int identify = ID_NONE; +static int extioctl = FALSE; +static const char *pidfile = "/var/run/moused.pid"; +static struct pidfh *pfh; #define SCROLL_NOTSCROLLING 0 #define SCROLL_PREPARE 1