OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_config.c versions 1.29 and 1.30
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_config.c 1.29 -> 1.30

--- rc_config.c  2003/05/26 16:03:57     1.29
+++ rc_config.c  2003/05/27 11:53:12     1.30
@@ -106,17 +106,17 @@
 const char *configGetval(rc_opt_t Optname)
 {
     ex_t Except;
-    volatile char *oszTemp = NULL;
+    char *szTemp = NULL;
 
     if (m_nLocks) {                         /* Make sure config exists      */
         try {
-            if ((oszTemp = (char *)clioptGetval(Optname)));
-/*            else if (oszTemp = envoptGetval(Optname));
-            else if (oszTemp = cnfoptGetval(Optname));*/
+            if ((szTemp = (char *)clioptGetval(Optname)));
+/*            else if (szTemp = envoptGetval(Optname));
+            else if (szTemp = cnfoptGetval(Optname));*/
         }
         catch(Except)
             rethrow;
-        return((const char *)oszTemp);
+        return((const char *)szTemp);
     }
     else {
         RC_THROW(RC_ERR_USE);
@@ -149,7 +149,7 @@
 const char *configGetrcfile(void)
 {
     ex_t Except;
-    volatile char *oszRcname = NULL;
+    char *szRcname = NULL;
 
     if (m_nLocks) {                     /* Make sure config exists   */
         try {
@@ -157,11 +157,11 @@
             /*         (2) it must be specified on the command line, */
             /* we don't bother checking the environment or conf file */
             /* contrary to the behaviour of Getval earlier           */
-            oszRcname = (char *)clioptGetrcfile();
+            szRcname = (char *)clioptGetrcfile();
         }
         catch(Except)
             rethrow;
-        return((const char *)oszRcname);
+        return((const char *)szRcname);
     }
     else
         RC_THROW(RC_ERR_USE);
@@ -171,15 +171,15 @@
 const char **configGetsecs(void)
 {
     ex_t Except;
-    volatile char **opszSecname = NULL;
+    char **pszSecname = NULL;
 
     if (m_nLocks) {                                 /* Make sure config exists   */
         try {                                       /* FIXME Might need to check */
-            opszSecname = (char **)clioptGetsecs(); /* FIXME env, conf, configs  */
+            pszSecname = (char **)clioptGetsecs(); /* FIXME env, conf, configs  */
         }
         catch(Except)
             rethrow;
-        return((const char **)opszSecname);
+        return((const char **)pszSecname);
     }
     else
         RC_THROW(RC_ERR_USE);

CVSTrac 2.0.1