mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Mark global functions and/or variables in spray(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
This commit is contained in:
parent
f69e32f1cd
commit
3a01367a9b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227261
@ -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[])
|
||||
|
Loading…
Reference in New Issue
Block a user