From 123031670f36e05572b57718c0b568df34a3bf55 Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 8 May 2007 22:25:39 +0000 Subject: [PATCH] Remove unnecessary global data variables --- lib/common/pointset.c | 4 ++-- lib/gvc/gvusershape.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common/pointset.c b/lib/common/pointset.c index c3cb4bfd8..f82ba0c1b 100644 --- a/lib/common/pointset.c +++ b/lib/common/pointset.c @@ -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), diff --git a/lib/gvc/gvusershape.c b/lib/gvc/gvusershape.c index df1b8efed..328c34eef 100644 --- a/lib/gvc/gvusershape.c +++ b/lib/gvc/gvusershape.c @@ -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", }, -- 2.40.0