diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 19:02:31 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 19:02:31 +0000 |
commit | 66f3c7141baf5a7317e70bab619d126ead5d3f43 (patch) | |
tree | f633a027e63555f6e8ad850f767c07671e8757a4 /usr.sbin | |
parent | 14d5ba532207bd4919a7a1b7583a8280b61f1900 (diff) | |
download | FreeBSD-src-66f3c7141baf5a7317e70bab619d126ead5d3f43.zip FreeBSD-src-66f3c7141baf5a7317e70bab619d126ead5d3f43.tar.gz |
Mark global functions and/or variables in rip6query(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rip6query/rip6query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rip6query/rip6query.c b/usr.sbin/rip6query/rip6query.c index 4426bbc..ea448ba2 100644 --- a/usr.sbin/rip6query/rip6query.c +++ b/usr.sbin/rip6query/rip6query.c @@ -56,9 +56,9 @@ #include "route6d.h" -int s; -struct sockaddr_in6 sin6; -struct rip6 *ripbuf; +static int s; +static struct sockaddr_in6 sin6; +static struct rip6 *ripbuf; #define RIPSIZE(n) (sizeof(struct rip6) + (n-1) * sizeof(struct netinfo6)) |