diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 19:02:49 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 19:02:49 +0000 |
commit | 7d6a47f31cfc10f8120d161301794b5dcf6f10b4 (patch) | |
tree | 2d1022f1b90e57c26de8a2f10396d4a4b8d88725 /usr.sbin/spray | |
parent | abe489102363343c774ced32a2ab70f0f93d44e3 (diff) | |
download | FreeBSD-src-7d6a47f31cfc10f8120d161301794b5dcf6f10b4.zip FreeBSD-src-7d6a47f31cfc10f8120d161301794b5dcf6f10b4.tar.gz |
Mark global functions and/or variables in spray(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
Diffstat (limited to 'usr.sbin/spray')
-rw-r--r-- | usr.sbin/spray/spray.c | 8 |
1 files changed, 4 insertions, 4 deletions
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[]) |