aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2011-11-06 19:02:49 +0000
committerEd Schouten <ed@FreeBSD.org>2011-11-06 19:02:49 +0000
commit3a01367a9bba0f093a45434a610f27630a04cda9 (patch)
tree2d1022f1b90e57c26de8a2f10396d4a4b8d88725
parentf69e32f1cd4326fcc8e80d1b531170121ef90fb6 (diff)
downloadsrc-3a01367a9bba0f093a45434a610f27630a04cda9.tar.gz
src-3a01367a9bba0f093a45434a610f27630a04cda9.zip
Mark global functions and/or variables in spray(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
Notes
Notes: svn path=/head/; revision=227261
-rw-r--r--usr.sbin/spray/spray.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/spray/spray.c b/usr.sbin/spray/spray.c
index 0e072e20ab27..69691d1ebead 100644
--- a/usr.sbin/spray/spray.c
+++ b/usr.sbin/spray/spray.c
@@ -49,12 +49,12 @@ static void usage(void);
static void print_xferstats(unsigned int, int, double);
/* spray buffer */
-char spray_buffer[SPRAYMAX];
+static char spray_buffer[SPRAYMAX];
/* RPC timeouts */
-struct timeval NO_DEFAULT = { -1, -1 };
-struct timeval ONE_WAY = { 0, 0 };
-struct timeval TIMEOUT = { 25, 0 };
+static struct timeval NO_DEFAULT = { -1, -1 };
+static struct timeval ONE_WAY = { 0, 0 };
+static struct timeval TIMEOUT = { 25, 0 };
int
main(int argc, char *argv[])