summaryrefslogtreecommitdiffstats
path: root/games/fortune/unstr
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-05 07:18:53 +0000
committered <ed@FreeBSD.org>2011-11-05 07:18:53 +0000
commitaf1e42f3663dcd8159beaaa0859821132e24b852 (patch)
tree4242cd3dd5692991dfad5e1680032fdc0aff58b8 /games/fortune/unstr
parent8fee4feec438219b472e674081c93ff29359229f (diff)
downloadFreeBSD-src-af1e42f3663dcd8159beaaa0859821132e24b852.zip
FreeBSD-src-af1e42f3663dcd8159beaaa0859821132e24b852.tar.gz
Add static keywords to variables and functions where possible in games/.
This allows us to detect unused functions and variables and allows the compiler to do a better job at optimisation.
Diffstat (limited to 'games/fortune/unstr')
-rw-r--r--games/fortune/unstr/unstr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/games/fortune/unstr/unstr.c b/games/fortune/unstr/unstr.c
index da799a0..f79a0ec 100644
--- a/games/fortune/unstr/unstr.c
+++ b/games/fortune/unstr/unstr.c
@@ -67,13 +67,13 @@ __FBSDID("$FreeBSD$");
#include "strfile.h"
-char *Infile, /* name of input file */
- Datafile[MAXPATHLEN], /* name of data file */
- Delimch; /* delimiter character */
+static char *Infile, /* name of input file */
+ Datafile[MAXPATHLEN], /* name of data file */
+ Delimch; /* delimiter character */
-FILE *Inf, *Dataf;
+static FILE *Inf, *Dataf;
-void order_unstr(STRFILE *);
+static void order_unstr(STRFILE *);
/* ARGSUSED */
int
@@ -107,7 +107,7 @@ main(int argc, char *argv[])
exit(0);
}
-void
+static void
order_unstr(STRFILE *tbl)
{
uint32_t i;
OpenPOWER on IntegriCloud