diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 08:18:17 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 08:18:17 +0000 |
commit | 7db87786d7fedf1048b8852170dfa8b72a3e9330 (patch) | |
tree | 67635d2b5d3157300e26b904ab23be4ac833ee88 /usr.bin/units | |
parent | 78429597040baa125f02e11449aecbc7c81ebf1d (diff) | |
download | FreeBSD-src-7db87786d7fedf1048b8852170dfa8b72a3e9330.zip FreeBSD-src-7db87786d7fedf1048b8852170dfa8b72a3e9330.tar.gz |
Add missing static keywords to units(1)
Diffstat (limited to 'usr.bin/units')
-rw-r--r-- | usr.bin/units/units.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c index e700c94..3f4dfd1 100644 --- a/usr.bin/units/units.c +++ b/usr.bin/units/units.c @@ -42,9 +42,9 @@ static const char rcsid[] = #define PRIMITIVECHAR '!' -const char *powerstring = "^"; +static const char *powerstring = "^"; -struct { +static struct { char *uname; char *uval; } unittable[MAXUNITS]; @@ -57,13 +57,13 @@ struct unittype { int quantity; }; -struct { +static struct { char *prefixname; char *prefixval; } prefixtable[MAXPREFIXES]; -char NULLUNIT[] = ""; +static char NULLUNIT[] = ""; #ifdef MSDOS #define SEPARATOR ";" @@ -71,8 +71,8 @@ char NULLUNIT[] = ""; #define SEPARATOR ":" #endif -int unitcount; -int prefixcount; +static int unitcount; +static int prefixcount; char *dupstr(const char *str); void readunits(const char *userfile); |