Author: ed
Date: Sun Nov  6 08:18:17 2011
New Revision: 227194
URL: http://svn.freebsd.org/changeset/base/227194

Log:
  Add missing static keywords to units(1)

Modified:
  head/usr.bin/units/units.c

Modified: head/usr.bin/units/units.c
==============================================================================
--- head/usr.bin/units/units.c  Sun Nov  6 08:18:11 2011        (r227193)
+++ head/usr.bin/units/units.c  Sun Nov  6 08:18:17 2011        (r227194)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to