]> granicus.if.org Git - graphviz/commitdiff
Remove unnecessary global data variables
authorerg <devnull@localhost>
Tue, 8 May 2007 22:25:39 +0000 (22:25 +0000)
committererg <devnull@localhost>
Tue, 8 May 2007 22:25:39 +0000 (22:25 +0000)
lib/common/pointset.c
lib/gvc/gvusershape.c

index c3cb4bfd81d0ec74915f0dcaf7fedf88e9e8f93a..f82ba0c1b9c9dd089facdb2b8ff65d8b25a857b2 100644 (file)
@@ -45,7 +45,7 @@ static int cmppair(Dt_t * d, point * key1, point * key2, Dtdisc_t * disc)
        return 0;
 }
 
-Dtdisc_t intPairDisc = {
+static Dtdisc_t intPairDisc = {
     offsetof(pair, id),
     sizeof(point),
     offsetof(pair, link),
@@ -147,7 +147,7 @@ static void freeMPair(Dt_t * d, mpair * ap, MPairDisc * disc)
     disc->flist = ap;
 }
 
-Dtdisc_t intMPairDisc = {
+static Dtdisc_t intMPairDisc = {
     offsetof(mpair, id),
     sizeof(point),
     offsetof(mpair, link),
index df1b8efede21635373b5f4ef218d267e4e7f2d4b..328c34eefd793e40ae9b98ff8a92b93df063b148 100644 (file)
@@ -48,7 +48,7 @@ typedef struct {
 #define PDF_MAGIC  "%PDF-"
 #define EPS_MAGIC  "\xC5\xD0\xD3\xC6"
 
-knowntype_t knowntypes[] = {
+static knowntype_t knowntypes[] = {
     { PNG_MAGIC,  sizeof(PNG_MAGIC)-1,  FT_PNG,  "png",  },
     { PS_MAGIC,   sizeof(PS_MAGIC)-1,   FT_PS,   "ps",   },
     { BMP_MAGIC,  sizeof(BMP_MAGIC)-1,  FT_BMP,  "bmp",  },