diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 19:02:20 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 19:02:20 +0000 |
commit | d0a630f9947625ecd0a08b03687a473d8fcfe611 (patch) | |
tree | 8d675791a94f0daf34841649dd119d7c324ab9e1 /usr.sbin | |
parent | 63fd44ffc00e62401ff37cc01e3fbe677786cf2a (diff) | |
download | FreeBSD-src-d0a630f9947625ecd0a08b03687a473d8fcfe611.zip FreeBSD-src-d0a630f9947625ecd0a08b03687a473d8fcfe611.tar.gz |
Mark global functions and/or variables in moused(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/moused/moused.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c index f598910..84e5c0b 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 |