OSSP CVS Repository

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

ossp-pkg/rc/rc.c 1.5 -> 1.6

--- rc.c 2002/02/04 22:35:20     1.5
+++ rc.c 2002/02/05 17:29:17     1.6
@@ -63,15 +63,15 @@
                      <command> [<command> ...]", szProgname);
 }*/
 
-int main(int argc, char *argv[]) {
-    char cOpt;           /* For argument parsing            */
-    int  iBufpos = 0;    /* For tracking options            */
-    char *szCLIBuf;    
-    char szFuncfile;     /* Rc.func file name and location  */
-    int  nIter;
+int main(int argc, char *argv[])
+{
+    char cOpt = 0;              /* For argument parsing           */
+    int  iBufpos = 0;           /* For tracking options           */
+    char *szCLIBuf = NULL;    
+    char *szFuncfile = NULL;    /* Rc.func file name and location */
+    int  nIter = 0;
     char pcBuf[BUFSIZ+1];
-    popt_context optCon; /* Context for parsing options     */
-    rc_return_t nRet;
+    popt_context optCon;        /* Context for parsing options    */
 
     struct popt_option optionsTable[] = {
         /* Long options with short keys but no arguments */
@@ -161,7 +161,7 @@
         fprintf(stderr, "%s: %s\n",
             popt_badoption(optCon, POPT_BADOPTION_NOALIAS),
             popt_strerror(cOpt));
-        die(nRet);
+        die(RC_ERR_INT);
     }
 
     /* Print out options, szCLIBuf chosen */

CVSTrac 2.0.1