From d1931b80656d597bfee8368e199bd0daa58929e4 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 6 Nov 2011 19:02:31 +0000 Subject: [PATCH] Mark global functions and/or variables in rip6query(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. --- usr.sbin/rip6query/rip6query.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/rip6query/rip6query.c b/usr.sbin/rip6query/rip6query.c index 4426bbc1c21f..ea448ba227c0 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))