Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 18:49:24 +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: r227237 - head/usr.bin/enigma
Message-ID:  <201111061849.pA6InOTm035951@svn.freebsd.org>

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

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

Modified:
  head/usr.bin/enigma/enigma.c

Modified: head/usr.bin/enigma/enigma.c
==============================================================================
--- head/usr.bin/enigma/enigma.c	Sun Nov  6 18:49:16 2011	(r227236)
+++ head/usr.bin/enigma/enigma.c	Sun Nov  6 18:49:23 2011	(r227237)
@@ -25,16 +25,16 @@ __FBSDID("$FreeBSD$");
 #define ECHO 010
 #define ROTORSZ 256
 #define MASK 0377
-char	t1[ROTORSZ];
-char	t2[ROTORSZ];
-char	t3[ROTORSZ];
-char	deck[ROTORSZ];
-char	buf[13];
+static char	t1[ROTORSZ];
+static char	t2[ROTORSZ];
+static char	t3[ROTORSZ];
+static char	deck[ROTORSZ];
+static char	buf[13];
 
-void	shuffle(char *);
-void	setup(char *);
+static void	shuffle(char *);
+static void	setup(char *);
 
-void
+static void
 setup(char *pw)
 {
 	int ic, i, k, temp;
@@ -128,7 +128,7 @@ main(int argc, char *argv[])
 	return 0;
 }
 
-void
+static void
 shuffle(char deckary[])
 {
 	int i, ic, k, temp;



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