From 7d6a47f31cfc10f8120d161301794b5dcf6f10b4 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 6 Nov 2011 19:02:49 +0000 Subject: 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(-) (limited to 'usr.sbin/spray') diff --git a/usr.sbin/spray/spray.c b/usr.sbin/spray/spray.c index 0e072e2..69691d1 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[]) -- cgit v1.1