Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 19:02:50 +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: r227261 - head/usr.sbin/spray
Message-ID:  <201111061902.pA6J2o02037247@svn.freebsd.org>

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

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

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

Modified: head/usr.sbin/spray/spray.c
==============================================================================
--- head/usr.sbin/spray/spray.c	Sun Nov  6 19:02:43 2011	(r227260)
+++ head/usr.sbin/spray/spray.c	Sun Nov  6 19:02:49 2011	(r227261)
@@ -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[])



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