From 3a01367a9bba0f093a45434a610f27630a04cda9 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 6 Nov 2011 19:02:49 +0000 Subject: [PATCH] Mark global functions and/or variables in spray(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. --- usr.sbin/spray/spray.c | 8 ++++---- 1 file 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[])