diff options
author | ed <ed@FreeBSD.org> | 2011-12-11 20:53:12 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-12-11 20:53:12 +0000 |
commit | 966190317663bb888ac1921039bc6ab70ae57358 (patch) | |
tree | 2b5e78ac9f0d95cdd6bdf0c301eb623821aea308 /bin | |
parent | 8859c9b1884c5fc9cd6300539db145f2d5d9f11e (diff) | |
download | FreeBSD-src-966190317663bb888ac1921039bc6ab70ae57358.zip FreeBSD-src-966190317663bb888ac1921039bc6ab70ae57358.tar.gz |
Add static keywords to chio(1).
All other global variables are already marked static, so for consistency
sake, add them to these three arrays as well.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/chio/chio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/chio/chio.c b/bin/chio/chio.c index 16e8800..9bb11d7 100644 --- a/bin/chio/chio.c +++ b/bin/chio/chio.c @@ -87,7 +87,7 @@ static int do_voltag(const char *, int, char **); #endif /* Valid changer element types. */ -const struct element_type elements[] = { +static const struct element_type elements[] = { { "drive", CHET_DT }, { "picker", CHET_MT }, { "portal", CHET_IE }, @@ -97,7 +97,7 @@ const struct element_type elements[] = { }; /* Valid commands. */ -const struct changer_command commands[] = { +static const struct changer_command commands[] = { { "exchange", do_exchange }, { "getpicker", do_getpicker }, { "ielem", do_ielem }, @@ -112,7 +112,7 @@ const struct changer_command commands[] = { }; /* Valid special words. */ -const struct special_word specials[] = { +static const struct special_word specials[] = { { "inv", SW_INVERT }, { "inv1", SW_INVERT1 }, { "inv2", SW_INVERT2 }, |