From f651fa8224b37840619723b9e0878d8592a9c88b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 19 Jan 2001 20:51:11 +0000 Subject: [PATCH] The module contains the static variable MasterConfig, which all other Petidomo routines can access via getMasterConfig(). The routine getListConfig(), which is defined in config.c, too, used the "correct" mechanism to access MasterConfig, even though it could access it directly. Since I chose the same name ("MasterConfig" :->) for the local copy of the pointer, gcc warns that this variable shadows the static one. To get rid of this warning, and since it doesn't make one bit a difference, getListConfig() accessse the static variable directly now. --- config.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config.c b/config.c index 1f2aefd..7adfe9e 100644 --- a/config.c +++ b/config.c @@ -148,7 +148,6 @@ static char* ack_file; const struct List_Config* getListConfig(const char * listname) { - const struct PD_Config * MasterConfig; struct List_Config * ListConfig; Node node; int rc; @@ -198,10 +197,6 @@ const struct List_Config* getListConfig(const char * listname) address_file = "list"; ack_file = "acks"; - /* Get the master configuration. */ - - MasterConfig = getMasterConfig(); - /* Did we read this config file already? */ node = FindNodeByKey(ListConfigs, listname);