From 43ad4b45110da2d9457cc99d09c7e52bed55062e Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 6 Nov 2011 18:49:23 +0000 Subject: [PATCH] Mark global functions and/or variables in enigma(1) static where possible. This allows compilers and static analyzers to more thorough analysis. --- usr.bin/enigma/enigma.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/usr.bin/enigma/enigma.c b/usr.bin/enigma/enigma.c index 68fd29ddfbc..49cb006a666 100644 --- a/usr.bin/enigma/enigma.c +++ b/usr.bin/enigma/enigma.c @@ -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;