diff options
author | Ed Schouten <ed@FreeBSD.org> | 2012-10-19 05:43:38 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2012-10-19 05:43:38 +0000 |
commit | ae824d80f28cd14c0c0ec75076c796e6a369bc18 (patch) | |
tree | 4ffbcf3b1f945e0ae5715cc8c2500ff622b14872 /sbin/etherswitchcfg/ifmedia.c | |
parent | 8241616dc534f6cf0c95abe6b61bc2bb0378fc91 (diff) | |
download | src-ae824d80f28cd14c0c0ec75076c796e6a369bc18.tar.gz src-ae824d80f28cd14c0c0ec75076c796e6a369bc18.zip |
Fix warnings found by -Wmising-variable-declarations.
This self-written compiler warning, which is hopefully going to be
committed into LLVM sources soon, warns about potentially missing
`static' keywords, similar to -Wmissing-prototypes.
- bin/pax: Move external declaration of chdname and s_mask into extern.h.
- bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h.
- sbin/mount_fusefs: Remove char *progname; use getprogname().
- others: add `static' where possible.
Notes
Notes:
svn path=/head/; revision=241720
Diffstat (limited to 'sbin/etherswitchcfg/ifmedia.c')
-rw-r--r-- | sbin/etherswitchcfg/ifmedia.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/etherswitchcfg/ifmedia.c b/sbin/etherswitchcfg/ifmedia.c index 258c3d5b9ed3..b9bd3b9c56ff 100644 --- a/sbin/etherswitchcfg/ifmedia.c +++ b/sbin/etherswitchcfg/ifmedia.c @@ -396,10 +396,10 @@ static struct ifmedia_description ifm_subtype_ieee80211_aliases[] = static struct ifmedia_description ifm_subtype_ieee80211_option_descriptions[] = IFM_SUBTYPE_IEEE80211_OPTION_DESCRIPTIONS; -struct ifmedia_description ifm_subtype_ieee80211_mode_descriptions[] = +static struct ifmedia_description ifm_subtype_ieee80211_mode_descriptions[] = IFM_SUBTYPE_IEEE80211_MODE_DESCRIPTIONS; -struct ifmedia_description ifm_subtype_ieee80211_mode_aliases[] = +static struct ifmedia_description ifm_subtype_ieee80211_mode_aliases[] = IFM_SUBTYPE_IEEE80211_MODE_ALIASES; static struct ifmedia_description ifm_subtype_atm_descriptions[] = |