commit 1f3345b9e6645227796cb50a0b85d7045cc7cbc0
Author: sin <[email protected]>
Date:   Sat Jan 10 14:21:09 2015 +0000

    Staticise some symbols in tr(1)

diff --git a/tr.c b/tr.c
index cfd1c94..854c190 100644
--- a/tr.c
+++ b/tr.c
@@ -20,7 +20,7 @@ struct range {
 #define PUNCT "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
 #define ALNUM DIGIT UPPER LOWER
 
-struct class {
+static struct {
        char  *name;
        char  *str;
 } classes[] = {
@@ -38,10 +38,10 @@ struct class {
        { "xdigit", DIGIT "A-Fa-f"  },
 };
 
-struct range *set1 = NULL;
-size_t set1ranges  = 0;
-struct range *set2 = NULL;
-size_t set2ranges  = 0;
+static struct range *set1 = NULL;
+static size_t set1ranges  = 0;
+static struct range *set2 = NULL;
+static size_t set2ranges  = 0;
 
 static size_t
 rangelen(struct range r)

Reply via email to