diff options
author | ed <ed@FreeBSD.org> | 2011-11-05 07:18:53 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-05 07:18:53 +0000 |
commit | af1e42f3663dcd8159beaaa0859821132e24b852 (patch) | |
tree | 4242cd3dd5692991dfad5e1680032fdc0aff58b8 /games/bcd/bcd.c | |
parent | 8fee4feec438219b472e674081c93ff29359229f (diff) | |
download | FreeBSD-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/bcd/bcd.c')
-rw-r--r-- | games/bcd/bcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/bcd/bcd.c b/games/bcd/bcd.c index a294ac3..056d238 100644 --- a/games/bcd/bcd.c +++ b/games/bcd/bcd.c @@ -82,7 +82,7 @@ static const char rcsid[] = #include <string.h> #include <unistd.h> -u_short holes[256] = { +static u_short holes[256] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, @@ -117,7 +117,7 @@ u_short holes[256] = { 0x202, 0x201, 0x082, 0x806, 0x822, 0x600, 0x282, 0x0 }; -void printcard(char *); +static void printcard(char *); /* * i'th bit of w. @@ -148,7 +148,7 @@ main(int argc, char **argv) #define COLUMNS 48 -void +static void printcard(char *str) { static char rowchars[] = " 123456789"; |