OSSP CVS Repository

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

ossp-pkg/rc/rc.c 1.14 -> 1.15

--- rc.c 2002/02/28 15:30:04     1.14
+++ rc.c 2002/02/28 18:24:04     1.15
@@ -30,22 +30,24 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include <string.h>
+
 #include "rc.h"
 #include "rc_private.h"
 
-/* Initialize our global OSSP ex library identifier */
-const char g_szOSSPrc[] = "OSSP rc";
-
 
 int main(int argc, char *argv[])
 {
     ex_t Except;
     int bCaught = 0;
-    rc_config_t *pConf = NULL;
 
     ex_try {
-        configConstruct(&pConf);
-        configLoad(pConf, argc, argv);
+        configConstruct();
+TRACE("Vor configLoad.");
+TRACEL((long)configGetvers());
+        configLoad(argc, argv);
+TRACE("Nach configLoad.");
+TRACEL((long)configGetvers());
     }
     ex_catch(Except) {
         bCaught = 1;
@@ -57,7 +59,6 @@
     if (!bCaught)
         fprintf(stderr, "main: No exceptions caught.\n");
 
-    if (pConf)      /* If a configuration exists, then burn it */
-        configDestruct(pConf);
+    configDestruct(); /* Possibly destruct the configuration */
     exit(0);        /* Success */
 }

CVSTrac 2.0.1