Add missing static keywords to units(1)

This commit is contained in:
Ed Schouten
2011-11-06 08:18:17 +00:00
parent 7f3cfdffbc
commit 90a29505f5
+6 -6
View File
@@ -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);