OSSP CVS Repository

ossp - Check-in [334]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 334
Date: 2001-Jan-19 21:51:11 (local)
2001-Jan-19 20:51:11 (UTC)
User:simons
Branch:
Comment: 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.
Tickets:
Inspections:
Files:
ossp-pkg/petidomo/config.c      1.20 -> 1.21     1 inserted, 6 deleted

ossp-pkg/petidomo/config.c 1.20 -> 1.21

--- config.c     2001/01/19 15:26:53     1.20
+++ config.c     2001/01/19 20:51:11     1.21
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/Attic/config.c,v $
-   $Revision: 1.20 $
+   $Revision: 1.21 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -148,7 +148,6 @@
 
 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 @@
     address_file     = "list";
     ack_file         = "acks";
 
-    /* Get the master configuration. */
-
-    MasterConfig = getMasterConfig();
-
     /* Did we read this config file already? */
 
     node = FindNodeByKey(ListConfigs, listname);

CVSTrac 2.0.1