Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 19:02:32 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227258 - head/usr.sbin/rip6query
Message-ID:  <201111061902.pA6J2WQe037130@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Sun Nov  6 19:02:31 2011
New Revision: 227258
URL: http://svn.freebsd.org/changeset/base/227258

Log:
  Mark global functions and/or variables in rip6query(8) static where possible.
  
  This allows compilers and static analyzers to do more thorough analysis.

Modified:
  head/usr.sbin/rip6query/rip6query.c

Modified: head/usr.sbin/rip6query/rip6query.c
==============================================================================
--- head/usr.sbin/rip6query/rip6query.c	Sun Nov  6 19:02:25 2011	(r227257)
+++ head/usr.sbin/rip6query/rip6query.c	Sun Nov  6 19:02:31 2011	(r227258)
@@ -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))
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111061902.pA6J2WQe037130>