From 7a106fe473def70699d70f3268d8ac87551fc267 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 6 Nov 2011 19:02:20 +0000 Subject: [PATCH] Mark global functions and/or variables in moused(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. --- usr.sbin/moused/moused.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c index f59891039666..84e5c0b105b7 100644 --- a/usr.sbin/moused/moused.c +++ b/usr.sbin/moused/moused.c @@ -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