OSSP CVS Repository

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

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

--- rc.c 2002/02/05 17:29:17     1.6
+++ rc.c 2002/02/05 19:12:24     1.7
@@ -91,7 +91,8 @@
         /* Single argument long options with short keys */
         { "locate",  'L', POPT_ARG_STRING, 0, RC_LOC_VAL, RC_LOC_DESC, "regx" },
         { "conf",    'c', POPT_ARG_STRING, 0, RC_CNF_VAL, RC_CNF_DESC, "path" },
-        { "func",    'f', POPT_ARG_STRING, 0, RC_FNC_VAL, RC_FNC_DESC, "path" },
+        { "func",    'f', POPT_ARG_STRING, &szFuncfile,\
+            RC_FNC_VAL, RC_FNC_DESC, "path" },
         { "query",   'q', POPT_ARG_STRING, 0, RC_QRY_VAL, RC_QRY_DESC, "varx" },
         { "tmp",     't', POPT_ARG_STRING, 0, RC_TMP_VAL, RC_TMP_DESC, "path" },
 
@@ -161,13 +162,13 @@
         fprintf(stderr, "%s: %s\n",
             popt_badoption(optCon, POPT_BADOPTION_NOALIAS),
             popt_strerror(cOpt));
-        die(RC_ERR_INT);
+        die(RC_ERR_ARG);
     }
 
     /* Print out options, szCLIBuf chosen */
-    printf("Options chosen: ");
+    fprintf(stderr, "Options chosen: ");
     for (nIter = 0; nIter < iBufpos ; nIter++)
-        printf("-%c ", pcBuf[nIter]);
+        fprintf(stderr, "-%c ", pcBuf[nIter]);
     if (szFuncfile)
         fprintf(stderr, "-f %s ", szFuncfile);
     fprintf(stderr, "\nRun these commands: %s\n", szCLIBuf);

CVSTrac 2.0.1