Date: Sun, 6 Nov 2011 19:02:20 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r227256 - head/usr.sbin/moused Message-ID: <201111061902.pA6J2KtN037052@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111061902.pA6J2KtN037052>