OSSP CVS Repository

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

ossp-pkg/rc/rc.c 1.32 -> 1.33

--- rc.c 2002/06/26 14:11:16     1.32
+++ rc.c 2002/06/26 14:42:53     1.33
@@ -43,14 +43,13 @@
     ex_try {                /* Configuration block                        */
         configNew();        /* Construct a new configuration              */
         configLoad(argc, (const char **)argv); /* Load cli, env, and conf */
-        configDebug();      /* FIXME Remove FIXME */
         configVerify();     /* Test for usage, help, and version options  */
     }
     ex_catch(Except) {      /* Exceptions of the configuration block      */
-        TRACE("Hopla, in config exception block");
-        if ((rc_return_t)Except.ex_value == RC_ERR_USE) {
+        if ((rc_return_t)Except.ex_value == RC_WRN_TRM)
+            exit(0);
+        else if ((rc_return_t)Except.ex_value == RC_ERR_USE)
             clioptPrintusage();
-        }
         else {
             fprintf(stderr, "Class '%s' threw exception %d in %s:%s():%d.\n",\
                 (char *)Except.ex_class, (int)Except.ex_value,\

CVSTrac 2.0.1