From 1ae369c9d24269c3723e9c76be5fc636f34fc8af Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 23 Oct 2001 01:49:35 +0000 Subject: [PATCH] some variables that should have been static weren't --- lib/dns/masterdump.c | 4 ++-- lib/dns/zone.c | 6 +++--- lib/isccfg/parser.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c index f9da3b23d4..5956dcce65 100644 --- a/lib/dns/masterdump.c +++ b/lib/dns/masterdump.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: masterdump.c,v 1.59 2001/09/05 10:28:53 marka Exp $ */ +/* $Id: masterdump.c,v 1.60 2001/10/23 01:49:32 gson Exp $ */ #include @@ -795,7 +795,7 @@ dump_order_compare(const void *a, const void *b) { #define MAXSORT 64 -const char *trustnames[] = { +static const char *trustnames[] = { "none", "pending", "additional", diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 81bb9d1030..acb8a228c6 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.349 2001/10/18 06:12:04 marka Exp $ */ +/* $Id: zone.c,v 1.350 2001/10/23 01:49:33 gson Exp $ */ #include @@ -432,8 +432,8 @@ static void dump_done(void *arg, isc_result_t result); #define ENTER zone_debuglog(zone, me, 1, "enter") -const unsigned int dbargc_default = 1; -const char *dbargv_default[] = { "rbt" }; +static const unsigned int dbargc_default = 1; +static const char *dbargv_default[] = { "rbt" }; /*** *** Public functions. diff --git a/lib/isccfg/parser.c b/lib/isccfg/parser.c index 57c3e78edd..d1b6822dc1 100644 --- a/lib/isccfg/parser.c +++ b/lib/isccfg/parser.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: parser.c,v 1.82 2001/10/19 18:08:27 gson Exp $ */ +/* $Id: parser.c,v 1.83 2001/10/23 01:49:35 gson Exp $ */ #include @@ -3812,7 +3812,7 @@ free_noop(cfg_parser_t *pctx, cfg_obj_t *obj) { /* * Data and functions for printing grammar summaries. */ -struct flagtext { +static struct flagtext { unsigned int flag; const char *text; } flagtexts[] = {